This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/11049] New: set print null-stop on spoils print for strings
- From: "pemekcz at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 3 Dec 2009 14:14:43 -0000
- Subject: [Bug gdb/11049] New: set print null-stop on spoils print for strings
- Reply-to: sourceware-bugzilla at sourceware dot org
start gdb with any C program using char *string="qwerty";
(gdb) print string
$1 = "qwerty"
invoke
(gdb) set print null-stop on
and then
(gdb) print string
$2 = ""
and revert setting:
(gdb) set print null-stop off
(gdb) print string
$3 = "qwerty"
The same for strings or arrays of char inside of structures.
--
Summary: set print null-stop on spoils print for strings
Product: gdb
Version: 6.8
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: gdb
AssignedTo: unassigned at sourceware dot org
ReportedBy: pemekcz at gmail dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11049
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.