diff options
| author | Gerd Moellmann | 2000-08-07 12:31:50 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-08-07 12:31:50 +0000 |
| commit | 3266f62b072157f421905ea26f670e3a007690c6 (patch) | |
| tree | 652e6a600fe5ee53e639bda2ef4606984cb883dc /src | |
| parent | ac0e96eefcdea2d4e61af557d629ff46db8da990 (diff) | |
| download | emacs-3266f62b072157f421905ea26f670e3a007690c6.tar.gz emacs-3266f62b072157f421905ea26f670e3a007690c6.zip | |
(xhashtable): New command.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 12 |
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. |
| 5 | dir ../lwlib | 5 | dir ../lwlib |
| 6 | dir /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. |
| 11 | handle 2 noprint pass | 12 | handle 2 noprint pass |
| 12 | 13 | ||
| 14 | # Don't pass SIGALRM to Emacs. This makes problems when | ||
| 15 | # debugging. | ||
| 16 | handle 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. | |||
| 243 | Print the name of the buffer. | 248 | Print the name of the buffer. |
| 244 | end | 249 | end |
| 245 | 250 | ||
| 251 | define xhashtable | ||
| 252 | print (struct Lisp_Hash_Table *) (($ & $valmask) | gdb_data_seg_bits) | ||
| 253 | end | ||
| 254 | document xhashtable | ||
| 255 | Set $ as a hash table pointer, assuming it is an Emacs Lisp hash table value. | ||
| 256 | end | ||
| 257 | |||
| 246 | define xcons | 258 | define xcons |
| 247 | print (struct Lisp_Cons *) (($ & $valmask) | gdb_data_seg_bits) | 259 | print (struct Lisp_Cons *) (($ & $valmask) | gdb_data_seg_bits) |
| 248 | output/x *$ | 260 | output/x *$ |