diff options
| author | Gerd Moellmann | 2000-01-11 22:07:09 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-01-11 22:07:09 +0000 |
| commit | 24b4d1bc2951393aa7eb9b0befb76af859ba5068 (patch) | |
| tree | 976d410ad2ab9ef52c80a194a069385d3efc2718 /src | |
| parent | c2a8d4a7df33dfee3e90eb95ba586c25a519fe23 (diff) | |
| download | emacs-24b4d1bc2951393aa7eb9b0befb76af859ba5068.tar.gz emacs-24b4d1bc2951393aa7eb9b0befb76af859ba5068.zip | |
Adapt to new strings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 406e02def59..52e902809f6 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -134,7 +134,7 @@ end | |||
| 134 | 134 | ||
| 135 | define xsymbol | 135 | define xsymbol |
| 136 | print (struct Lisp_Symbol *) ((((int) $) & $valmask) | gdb_data_seg_bits) | 136 | print (struct Lisp_Symbol *) ((((int) $) & $valmask) | gdb_data_seg_bits) |
| 137 | output (char*)&$->name->data | 137 | output (char*)$->name->data |
| 138 | echo \n | 138 | echo \n |
| 139 | end | 139 | end |
| 140 | document xsymbol | 140 | document xsymbol |
| @@ -291,6 +291,38 @@ document xscrollbar | |||
| 291 | Print $ as a scrollbar pointer. | 291 | Print $ as a scrollbar pointer. |
| 292 | end | 292 | end |
| 293 | 293 | ||
| 294 | define xprintsym | ||
| 295 | set $sym = (struct Lisp_Symbol *) ((((int) $arg0) & $valmask) | gdb_data_seg_bits) | ||
| 296 | output (char*)$sym->name->data | ||
| 297 | echo \n | ||
| 298 | end | ||
| 299 | document xprintsym | ||
| 300 | Print argument as a symbol. | ||
| 301 | end | ||
| 302 | |||
| 303 | define xbacktrace | ||
| 304 | set $bt = backtrace_list | ||
| 305 | while $bt | ||
| 306 | xprintsym *$bt->function | ||
| 307 | set $bt = $bt->next | ||
| 308 | end | ||
| 309 | end | ||
| 310 | document xbacktrace | ||
| 311 | Print a backtrace of Lisp function calls from backtrace_list. | ||
| 312 | Set a breakpoint at Fsignal and call this to see from where | ||
| 313 | an error was signalled. | ||
| 314 | end | ||
| 315 | |||
| 316 | define xreload | ||
| 317 | set $valmask = ((long)1 << gdb_valbits) - 1 | ||
| 318 | set $nonvalbits = gdb_emacs_intbits - gdb_valbits | ||
| 319 | end | ||
| 320 | document xreload | ||
| 321 | When starting Emacs a second time in the same gdb session under | ||
| 322 | FreeBSD 2.2.5, gdb 4.13, $valmask and $nonvalbits have lost | ||
| 323 | their values. This function reloads them. | ||
| 324 | end | ||
| 325 | |||
| 294 | set print pretty on | 326 | set print pretty on |
| 295 | set print sevenbit-strings | 327 | set print sevenbit-strings |
| 296 | 328 | ||