Mercurial > hg > xemacs-beta
diff etc/gdbinit.in @ 4654:cdc51540fed7
Automated merge with ssh://aidan-guest@hg.debian.org//hg/xemacs/xemacs
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 15 Jul 2009 00:21:01 +0100 |
parents | e9ccbc62f7e7 |
children | 7ef913bf3c9a |
line wrap: on
line diff
--- a/etc/gdbinit.in Sun Jul 12 22:39:44 2009 +0200 +++ b/etc/gdbinit.in Wed Jul 15 00:21:01 2009 +0100 @@ -71,6 +71,8 @@ #endif set $Lisp_Type_Int = -2 +set $Lisp_Type_Record = 0 +set $Lisp_Type_Char = 2 define decode_object set $obj = (unsigned long) $arg0 @@ -80,7 +82,7 @@ set $type = $Lisp_Type_Int else set $type = $obj & dbg_typemask - if $type == Lisp_Type_Char + if $type == $Lisp_Type_Char set $val = ($obj & dbg_valmask) >> dbg_gctypebits else ## It's a record pointer @@ -88,7 +90,7 @@ end end - if $type == Lisp_Type_Record + if $type == $Lisp_Type_Record set $lheader = ((struct lrecord_header *) $val) set $lrecord_type = ($lheader->type) set $imp = ((struct lrecord_implementation *) lrecord_implementations_table[(int) $lrecord_type]) @@ -115,7 +117,7 @@ if $type == $Lisp_Type_Int echo int\n else - if $type == Lisp_Type_Char + if $type == $Lisp_Type_Char echo char\n else printf "record type: %s\n", $imp->name @@ -264,7 +266,7 @@ if $type == $Lisp_Type_Int printf "Integer: %d\n", $val else - if $type == Lisp_Type_Char + if $type == $Lisp_Type_Char if $val > 32 && $val < 128 printf "Char: %c\n", $val else