diff options
| author | Richard M. Stallman | 1994-06-18 21:03:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-18 21:03:36 +0000 |
| commit | 4ea0847a369e878d119b8644454c04223fdfb193 (patch) | |
| tree | 83516b7fe6f01abaf297f09e944f4910ff17736a /src | |
| parent | 4f75313380c76aa809a5861dae90d81d6088087f (diff) | |
| download | emacs-4ea0847a369e878d119b8644454c04223fdfb193.tar.gz emacs-4ea0847a369e878d119b8644454c04223fdfb193.zip | |
(xsymbol): Cast $ to int.
(xvector, xstring): Don't use a string constant.
Reduce size limit for printing contents.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index cc59567926d..c0e97b33c20 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -69,7 +69,7 @@ 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 |
| @@ -80,7 +80,7 @@ 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 |
| @@ -90,7 +90,7 @@ 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 |