Mercurial > emacs
comparison src/.gdbinit @ 7961:f3e1a5c7bba1
(xsymbol): Cast $ to int.
(xvector, xstring): Don't use a string constant.
Reduce size limit for printing contents.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 18 Jun 1994 21:03:36 +0000 |
parents | 19aacadabdc0 |
children | 05260d3b988d |
comparison
equal
deleted
inserted
replaced
7960:cf5e53c5089e | 7961:f3e1a5c7bba1 |
---|---|
67 Set $ as a buffer pointer, assuming it is an Elisp buffer value. | 67 Set $ as a buffer pointer, assuming it is an Elisp buffer value. |
68 Print the name of the buffer. | 68 Print the name of the buffer. |
69 end | 69 end |
70 | 70 |
71 define xsymbol | 71 define xsymbol |
72 print (struct Lisp_Symbol *) (($ & 0x00ffffff) | $data_seg_bits) | 72 print (struct Lisp_Symbol *) ((((int) $) & 0x00ffffff) | $data_seg_bits) |
73 output &$->name->data | 73 output &$->name->data |
74 echo \n | 74 echo \n |
75 end | 75 end |
76 document xsymbol | 76 document xsymbol |
77 Print the name and address of the symbol $. | 77 Print the name and address of the symbol $. |
78 This command assumes that $ is an Elisp symbol value. | 78 This command assumes that $ is an Elisp symbol value. |
79 end | 79 end |
80 | 80 |
81 define xstring | 81 define xstring |
82 print (struct Lisp_String *) (($ & 0x00ffffff) | $data_seg_bits) | 82 print (struct Lisp_String *) (($ & 0x00ffffff) | $data_seg_bits) |
83 output ($->size > 10000) ? "big string" : ($->data[0])@($->size) | 83 output ($->size > 1000) ? 0 : ($->data[0])@($->size) |
84 echo \n | 84 echo \n |
85 end | 85 end |
86 document xstring | 86 document xstring |
87 Print the contents and address of the string $. | 87 Print the contents and address of the string $. |
88 This command assumes that $ is an Elisp string value. | 88 This command assumes that $ is an Elisp string value. |
89 end | 89 end |
90 | 90 |
91 define xvector | 91 define xvector |
92 print (struct Lisp_Vector *) (($ & 0x00ffffff) | $data_seg_bits) | 92 print (struct Lisp_Vector *) (($ & 0x00ffffff) | $data_seg_bits) |
93 output ($->size > 1000) ? "big vector" : ($->contents[0])@($->size) | 93 output ($->size > 50) ? 0 : ($->contents[0])@($->size) |
94 echo \n | 94 echo \n |
95 end | 95 end |
96 document xvector | 96 document xvector |
97 Print the contents and address of the vector $. | 97 Print the contents and address of the vector $. |
98 This command assumes that $ is an Elisp vector value. | 98 This command assumes that $ is an Elisp vector value. |