From: Paul Eggert Date: Mon, 9 Mar 2020 19:24:21 +0000 (-0700) Subject: Port .gdbinit to clang with -gdwarf-4 X-Git-Tag: emacs-27.0.91~89 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4537976afd;p=emacs.git Port .gdbinit to clang with -gdwarf-4 * src/.gdbinit (xgetsym): Port to clang with -gdwarf-4, which doesn’t output the type of lispsym anywhere other than emacs.o (Bug#39962). --- diff --git a/src/.gdbinit b/src/.gdbinit index 5dd01337153..30c7b055ce0 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -72,7 +72,7 @@ end define xgetsym xgetptr $arg0 - set $ptr = ((struct Lisp_Symbol *) ((char *)lispsym + $ptr)) + set $ptr = ((struct Lisp_Symbol *) ((char *) &lispsym + $ptr)) end # Access the name of a symbol