summaryrefslogtreecommitdiff
path: root/debian/README.Debian
diff options
context:
space:
mode:
authorMichael Prokop <mika@debian.org>2011-02-23 14:18:58 +0100
committerFrank Terbeck <ft@bewatermyfriend.org>2011-03-02 18:55:24 +0100
commite8d69775314c4c32c34cb3f5d27f750907907877 (patch)
tree5dc39bdcdcfb70241c4c45fa4fc1d10bc57c9a5c /debian/README.Debian
parent78ab02ffa00d1f1a149bed755b72ff0bf0ff4bbb (diff)
downloadzsh-e8d69775314c4c32c34cb3f5d27f750907907877.tar.gz
zsh-e8d69775314c4c32c34cb3f5d27f750907907877.zip
README.Debian: Add instructions how to use the zsh-dbg package.
Diffstat (limited to 'debian/README.Debian')
-rw-r--r--debian/README.Debian31
1 files changed, 30 insertions, 1 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
index 5a2fa918a..302577f31 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -1,4 +1,33 @@
+Zsh for Debian
+--------------
+
This version of zsh has been compiled with support for maildir
folders in MAIL and MAILPATH.
-Clint Adams <schizo@debian.org>
+ -- Clint Adams <schizo@debian.org>
+
+How to use the zsh-dbg package
+------------------------------
+
+In the first terminal execute:
+
+ sudo apt-get install zsh-dbg
+ apt-get source zsh
+ cd zsh-*
+
+In the second terminal invoke 'zsh -f' (or drop the '-f' if you
+don't want to start with a clean Zsh session). Execute all the
+relevant steps right *before* you can trigger the problem you
+want to inspect using gdb.
+
+Return to the first terminal where you're standing in Zsh's
+source directory. Identify the process id of the Zsh instance
+you want to debug ("ps aux | grep '[z]sh'") and use it for $PID.
+Then execute:
+
+ gdb $(find . -type d -printf '-d %p ') attach $PID
+
+Now you can use the usual gdb commands like step / continue / ...
+to debug the Zsh process at source level.
+
+ -- Michael Prokop <mika@debian.org>