summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/.gdbinit5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 3660155f62d..fe9ddf7dbb7 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -186,9 +186,10 @@ Print $ as a buffer-local-value pointer, assuming it is an Emacs Lisp Misc value
end
define xsymbol
- xgetptr $
+ set $sym = $
+ xgetptr $sym
print (struct Lisp_Symbol *) $ptr
- xprintsym $
+ xprintsym $sym
echo \n
end
document xsymbol