]> code.delx.au - gnu-emacs/blobdiff - src/.gdbinit
Delete the code that was trying to define BSD "right"
[gnu-emacs] / src / .gdbinit
index 87e3c2824d6ebf136afb52b84d6653fa29c13542..ab47f0844ac874fa694eda8a4a58a6d7a1479e16 100644 (file)
@@ -3,6 +3,9 @@
 # Force loading of symbols, enough to give us gdb_valbits etc.
 set main
 
+# Find lwlib source files too.
+dir ../lwlib
+
 # This should be EMACS_INT, but in some cases that is a macro.
 # long ought to work in all cases right now.
 set $valmask = ((long)1 << gdb_valbits) - 1
@@ -11,7 +14,6 @@ set $nonvalbits = gdb_emacs_intbits - gdb_valbits
 # Set up something to print out s-expressions.
 define pr
 set debug_print ($)
-echo \n
 end
 document pr
 Print the emacs s-expression which is $.
@@ -146,7 +148,7 @@ end
 
 define xsymbol
 print (struct Lisp_Symbol *) ((((int) $) & $valmask) | gdb_data_seg_bits)
-output &$->name->data
+output (char*)&$->name->data
 echo \n
 end
 document xsymbol