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).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user