aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-08-07 12:31:50 +0000
committerGerd Moellmann2000-08-07 12:31:50 +0000
commit3266f62b072157f421905ea26f670e3a007690c6 (patch)
tree652e6a600fe5ee53e639bda2ef4606984cb883dc /src
parentac0e96eefcdea2d4e61af557d629ff46db8da990 (diff)
downloademacs-3266f62b072157f421905ea26f670e3a007690c6.tar.gz
emacs-3266f62b072157f421905ea26f670e3a007690c6.zip
(xhashtable): New command.
Diffstat (limited to 'src')
-rw-r--r--src/.gdbinit12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 52e902809f6..b50d672c73b 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -3,6 +3,7 @@ set main
3 3
4# Find lwlib source files too. 4# Find lwlib source files too.
5dir ../lwlib 5dir ../lwlib
6dir /gd/gnu/lesstif-0.89.9/lib/Xm
6 7
7# Don't enter GDB when user types C-g to quit. 8# Don't enter GDB when user types C-g to quit.
8# This has one unfortunate effect: you can't type C-c 9# This has one unfortunate effect: you can't type C-c
@@ -10,6 +11,10 @@ dir ../lwlib
10# However, C-z works just as well in that case. 11# However, C-z works just as well in that case.
11handle 2 noprint pass 12handle 2 noprint pass
12 13
14# Don't pass SIGALRM to Emacs. This makes problems when
15# debugging.
16handle SIGALRM ignore
17
13# Set up a mask to use. 18# Set up a mask to use.
14# This should be EMACS_INT, but in some cases that is a macro. 19# This should be EMACS_INT, but in some cases that is a macro.
15# long ought to work in all cases right now. 20# long ought to work in all cases right now.
@@ -243,6 +248,13 @@ Set $ as a buffer pointer, assuming it is an Emacs Lisp buffer value.
243Print the name of the buffer. 248Print the name of the buffer.
244end 249end
245 250
251define xhashtable
252print (struct Lisp_Hash_Table *) (($ & $valmask) | gdb_data_seg_bits)
253end
254document xhashtable
255Set $ as a hash table pointer, assuming it is an Emacs Lisp hash table value.
256end
257
246define xcons 258define xcons
247print (struct Lisp_Cons *) (($ & $valmask) | gdb_data_seg_bits) 259print (struct Lisp_Cons *) (($ & $valmask) | gdb_data_seg_bits)
248output/x *$ 260output/x *$