aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/.gdbinit20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 1bfc293c466..2668772c2ed 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -992,6 +992,23 @@ document xscrollbar
992Print $ as a scrollbar pointer. 992Print $ as a scrollbar pointer.
993end 993end
994 994
995define xxwidget
996 xgetptr $
997 set $xw = (struct xwidget *) $ptr
998 print $xw
999 printf " Type: "
1000 xprintsym $xw->type
1001 echo \n
1002 printf " Title: "
1003 xgetptr $xw->title
1004 set $title = (struct Lisp_String *) $ptr
1005 xprintstr $title
1006 echo \n
1007end
1008document xxwidget
1009Print $ assuming it is a xwidget.
1010end
1011
995define xpr 1012define xpr
996 xtype 1013 xtype
997 if $type == Lisp_Int0 || $type == Lisp_Int1 1014 if $type == Lisp_Int0 || $type == Lisp_Int1
@@ -1061,6 +1078,9 @@ define xpr
1061 if $vec == PVEC_HASH_TABLE 1078 if $vec == PVEC_HASH_TABLE
1062 xhashtable 1079 xhashtable
1063 end 1080 end
1081 if $vec == PVEC_XWIDGET
1082 xxwidget
1083 end
1064 else 1084 else
1065 xvector 1085 xvector
1066 end 1086 end