From 5d3030910f111e991e5050339faf16b99b401e6a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 4 May 2019 19:19:58 +0300 Subject: [PATCH] Minor fix in .gdbinit * src/.gdbinit (xprintsym): Don't attempt to print the symbol's name if it is not yet set. This happens with built-in symbols at the beginning of 'main'. --- src/.gdbinit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/.gdbinit b/src/.gdbinit index b8b303104f5..8c9a227ee33 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -1059,8 +1059,10 @@ end define xprintsym xsymname $arg0 xgetptr $symname - set $sym_name = (struct Lisp_String *) $ptr - xprintstr $sym_name + if $ptr != 0 + set $sym_name = (struct Lisp_String *) $ptr + xprintstr $sym_name + end end document xprintsym Print argument as a symbol. -- 2.39.2