changeset 76129:a0627ed0c1aa

(xprintstr): Ensure GDB (> 6.6) prints symbol name as strings and not character arrays.
author Nick Roberts <nickrob@snap.net.nz>
date Sat, 24 Feb 2007 21:12:30 +0000
parents 120cf32525c1
children 881cea08f0ab
files src/.gdbinit
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/.gdbinit	Sat Feb 24 20:41:07 2007 +0000
+++ b/src/.gdbinit	Sat Feb 24 21:12:30 2007 +0000
@@ -977,7 +977,7 @@
 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