public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11049] New: set print null-stop on spoils print for strings
@ 2009-12-03 14:14 pemekcz at gmail dot com
  2009-12-03 14:17 ` [Bug gdb/11049] " pemekcz at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pemekcz at gmail dot com @ 2009-12-03 14:14 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/11049] set print null-stop on spoils print for strings
  2009-12-03 14:14 [Bug gdb/11049] New: set print null-stop on spoils print for strings pemekcz at gmail dot com
@ 2009-12-03 14:17 ` pemekcz at gmail dot com
  2009-12-03 14:33 ` pemekcz at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pemekcz at gmail dot com @ 2009-12-03 14:17 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|                            |GNU gdb (GDB) SUSE
                   |                            |(6.8.91.20090930-2.4)


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/11049] set print null-stop on spoils print for strings
  2009-12-03 14:14 [Bug gdb/11049] New: set print null-stop on spoils print for strings pemekcz at gmail dot com
  2009-12-03 14:17 ` [Bug gdb/11049] " pemekcz at gmail dot com
@ 2009-12-03 14:33 ` pemekcz at gmail dot com
  2010-01-25 18:39 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pemekcz at gmail dot com @ 2009-12-03 14:33 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pemekcz at gmail dot com  2009-12-03 14:33 -------
cast to char * restores correct behavior
(gdb) print (char *)string
$4 = "qwerty"


-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/11049] set print null-stop on spoils print for strings
  2009-12-03 14:14 [Bug gdb/11049] New: set print null-stop on spoils print for strings pemekcz at gmail dot com
  2009-12-03 14:17 ` [Bug gdb/11049] " pemekcz at gmail dot com
  2009-12-03 14:33 ` pemekcz at gmail dot com
@ 2010-01-25 18:39 ` tromey at redhat dot com
  2010-01-25 19:31 ` cvs-commit at gcc dot gnu dot org
  2010-01-25 19:32 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2010-01-25 18:39 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-01-25 18:39 -------
Testing a patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware dot|tromey at redhat dot com
                   |org                         |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-01-25 18:39:55
               date|                            |


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/11049] set print null-stop on spoils print for strings
  2009-12-03 14:14 [Bug gdb/11049] New: set print null-stop on spoils print for strings pemekcz at gmail dot com
                   ` (2 preceding siblings ...)
  2010-01-25 18:39 ` tromey at redhat dot com
@ 2010-01-25 19:31 ` cvs-commit at gcc dot gnu dot org
  2010-01-25 19:32 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2010-01-25 19:31 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2010-01-25 19:31 -------
Subject: Bug 11049

CVSROOT:	/cvs/src
Module name:	src
Changes by:	tromey@sourceware.org	2010-01-25 19:31:24

Modified files:
	gdb            : ChangeLog c-valprint.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.base: printcmds.exp 

Log message:
	gdb
	PR gdb/11049:
	* c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
	result.
	gdb/testsuite
	PR gdb/11049:
	* gdb.base/printcmds.exp (test_print_typedef_arrays): Add test
	with "set print null-stop on".

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11288&r2=1.11289
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/c-valprint.c.diff?cvsroot=src&r1=1.65&r2=1.66
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2100&r2=1.2101
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/printcmds.exp.diff?cvsroot=src&r1=1.27&r2=1.28



-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/11049] set print null-stop on spoils print for strings
  2009-12-03 14:14 [Bug gdb/11049] New: set print null-stop on spoils print for strings pemekcz at gmail dot com
                   ` (3 preceding siblings ...)
  2010-01-25 19:31 ` cvs-commit at gcc dot gnu dot org
@ 2010-01-25 19:32 ` tromey at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2010-01-25 19:32 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-01-25 19:32 -------
Fix checked in.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-25 19:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-03 14:14 [Bug gdb/11049] New: set print null-stop on spoils print for strings pemekcz at gmail dot com
2009-12-03 14:17 ` [Bug gdb/11049] " pemekcz at gmail dot com
2009-12-03 14:33 ` pemekcz at gmail dot com
2010-01-25 18:39 ` tromey at redhat dot com
2010-01-25 19:31 ` cvs-commit at gcc dot gnu dot org
2010-01-25 19:32 ` tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).