This is the mail archive of the gdb-prs@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]

[Bug gdb/11049] New: set print null-stop on spoils print for strings


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.


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