aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2004-05-15 16:44:11 +0000
committerAndreas Schwab2004-05-15 16:44:11 +0000
commitfc80da24a99e22bee59033c69ee1e0aba2c801b0 (patch)
tree60a07764174a8de6f9984f60b86ba79296302ee5
parent3fba6ca915065989e6d1daaed89d36ca602cfad2 (diff)
downloademacs-fc80da24a99e22bee59033c69ee1e0aba2c801b0.tar.gz
emacs-fc80da24a99e22bee59033c69ee1e0aba2c801b0.zip
Mask off gdb_array_mark_flag from vector sizes.
-rw-r--r--src/.gdbinit12
-rw-r--r--src/ChangeLog5
2 files changed, 11 insertions, 6 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 80ad1e249ad..33f02f4edc0 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -81,7 +81,7 @@ end
81define xvectype 81define xvectype
82 xgetptr $ 82 xgetptr $
83 set $size = ((struct Lisp_Vector *) $ptr)->size 83 set $size = ((struct Lisp_Vector *) $ptr)->size
84 output ($size & PVEC_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size 84 output ($size & PVEC_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size & ~gdb_array_mark_flag
85 echo \n 85 echo \n
86end 86end
87document xvectype 87document xvectype
@@ -199,7 +199,7 @@ end
199define xstring 199define xstring
200 xgetptr $ 200 xgetptr $
201 print (struct Lisp_String *) $ptr 201 print (struct Lisp_String *) $ptr
202 output ($->size > 1000) ? 0 : ($->data[0])@($->size_byte < 0 ? $->size : $->size_byte) 202 output ($->size > 1000) ? 0 : ($->data[0])@($->size_byte < 0 ? $->size & ~gdb_array_mark_flag : $->size_byte)
203 echo \n 203 echo \n
204end 204end
205document xstring 205document xstring
@@ -210,7 +210,7 @@ end
210define xvector 210define xvector
211 xgetptr $ 211 xgetptr $
212 print (struct Lisp_Vector *) $ptr 212 print (struct Lisp_Vector *) $ptr
213 output ($->size > 50) ? 0 : ($->contents[0])@($->size) 213 output ($->size > 50) ? 0 : ($->contents[0])@($->size & ~gdb_array_mark_flag)
214echo \n 214echo \n
215end 215end
216document xvector 216document xvector
@@ -289,7 +289,7 @@ end
289define xboolvector 289define xboolvector
290 xgetptr $ 290 xgetptr $
291 print (struct Lisp_Bool_Vector *) $ptr 291 print (struct Lisp_Bool_Vector *) $ptr
292 output ($->size > 256) ? 0 : ($->data[0])@(($->size + 7)/ 8) 292 output ($->size > 256) ? 0 : ($->data[0])@((($->size & ~gdb_array_mark_flag) + 7)/ 8)
293 echo \n 293 echo \n
294end 294end
295document xboolvector 295document xboolvector
@@ -377,7 +377,7 @@ define xprintsym
377 set $sym = (struct Lisp_Symbol *) $ptr 377 set $sym = (struct Lisp_Symbol *) $ptr
378 xgetptr $sym->xname 378 xgetptr $sym->xname
379 set $sym_name = (struct Lisp_String *) $ptr 379 set $sym_name = (struct Lisp_String *) $ptr
380 output ($sym_name->data[0])@($sym_name->size_byte < 0 ? $sym_name->size : $sym_name->size_byte) 380 output ($sym_name->data[0])@($sym_name->size_byte < 0 ? $sym_name->size & ~gdb_array_mark_flag : $sym_name->size_byte)
381end 381end
382document xprintsym 382document xprintsym
383 Print argument as a symbol. 383 Print argument as a symbol.
@@ -395,7 +395,7 @@ define xbacktrace
395 if $type == Lisp_Vectorlike 395 if $type == Lisp_Vectorlike
396 xgetptr (*$bt->function) 396 xgetptr (*$bt->function)
397 set $size = ((struct Lisp_Vector *) $ptr)->size 397 set $size = ((struct Lisp_Vector *) $ptr)->size
398 output ($size & PVEC_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size 398 output ($size & PVEC_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size & ~gdb_array_mark_flag
399 else 399 else
400 printf "Lisp type %d", $type 400 printf "Lisp type %d", $type
401 end 401 end
diff --git a/src/ChangeLog b/src/ChangeLog
index 314d993f8b9..f1bc7048e29 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-05-15 Andreas Schwab <schwab@suse.de>
2
3 * emacs.c (gdb_array_mark_flag): Define.
4 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
5
12004-05-15 Eli Zaretskii <eliz@gnu.org> 62004-05-15 Eli Zaretskii <eliz@gnu.org>
2 7
3 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use 8 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use