This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

set print null-stop


Hello, maling list.
Can't make "set print null-stop" work as written in manual.
For example:

char str[7];
sprintf(str, "i=%i", 0);

(gdb) p str
$1 = "i=0\000\017\377\267"
(gdb) set print null-stop
(gdb) p str
$2 = ""

Does this feature work or I'm doing something wrong?
Another question - is there a corresponding gdm/mi command?

Thank you,
Alexander



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]