set print null-stop

Alexander Petukhov al_petukhov@mail.ru
Sat Jan 22 08:54:00 GMT 2011


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




More information about the Gdb mailing list