Mercurial > emacs
comparison src/.gdbinit @ 27290:c26a9f95a880
Adapt to new strings.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 11 Jan 2000 22:07:09 +0000 |
parents | 4379a41b6f2e |
children | 88e0ba67d3bc |
comparison
equal
deleted
inserted
replaced
27289:f6c878d8527c | 27290:c26a9f95a880 |
---|---|
132 Print $ as a buffer-local-value pointer, assuming it is an Emacs Lisp Misc value. | 132 Print $ as a buffer-local-value pointer, assuming it is an Emacs Lisp Misc value. |
133 end | 133 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 |
141 Print the name and address of the symbol $. | 141 Print the name and address of the symbol $. |
142 This command assumes that $ is an Emacs Lisp symbol value. | 142 This command assumes that $ is an Emacs Lisp symbol value. |
289 end | 289 end |
290 document xscrollbar | 290 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 |
297 show environment DISPLAY | 329 show environment DISPLAY |
298 show environment TERM | 330 show environment TERM |