aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-18 21:03:36 +0000
committerRichard M. Stallman1994-06-18 21:03:36 +0000
commit4ea0847a369e878d119b8644454c04223fdfb193 (patch)
tree83516b7fe6f01abaf297f09e944f4910ff17736a /src
parent4f75313380c76aa809a5861dae90d81d6088087f (diff)
downloademacs-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/.gdbinit6
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.
69end 69end
70 70
71define xsymbol 71define xsymbol
72print (struct Lisp_Symbol *) (($ & 0x00ffffff) | $data_seg_bits) 72print (struct Lisp_Symbol *) ((((int) $) & 0x00ffffff) | $data_seg_bits)
73output &$->name->data 73output &$->name->data
74echo \n 74echo \n
75end 75end
@@ -80,7 +80,7 @@ end
80 80
81define xstring 81define xstring
82print (struct Lisp_String *) (($ & 0x00ffffff) | $data_seg_bits) 82print (struct Lisp_String *) (($ & 0x00ffffff) | $data_seg_bits)
83output ($->size > 10000) ? "big string" : ($->data[0])@($->size) 83output ($->size > 1000) ? 0 : ($->data[0])@($->size)
84echo \n 84echo \n
85end 85end
86document xstring 86document xstring
@@ -90,7 +90,7 @@ end
90 90
91define xvector 91define xvector
92print (struct Lisp_Vector *) (($ & 0x00ffffff) | $data_seg_bits) 92print (struct Lisp_Vector *) (($ & 0x00ffffff) | $data_seg_bits)
93output ($->size > 1000) ? "big vector" : ($->contents[0])@($->size) 93output ($->size > 50) ? 0 : ($->contents[0])@($->size)
94echo \n 94echo \n
95end 95end
96document xvector 96document xvector