]> code.delx.au - gnu-emacs/blobdiff - src/.gdbinit
Merge from emacs--devo--0
[gnu-emacs] / src / .gdbinit
index 8d8c163b3b6981bddfb502d8f8bf6c1346905cd6..de35709f26b4aa7d56f63f16bca245ffca95c918 100644 (file)
@@ -5,7 +5,7 @@
 #
 # GNU Emacs is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
+# the Free Software Foundation; either version 3, or (at your option)
 # any later version.
 #
 # GNU Emacs is distributed in the hope that it will be useful,
@@ -977,7 +977,7 @@ Print $ as a lisp object of any type.
 end
 
 define xprintstr
-  set $data = $arg0->data
+  set $data = (char *) $arg0->data
   output ($arg0->size > 1000) ? 0 : ($data[0])@($arg0->size_byte < 0 ? $arg0->size & ~gdb_array_mark_flag : $arg0->size_byte)
 end