public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/14977] New: printf dies with null string
@ 2012-12-19 14:44 tromey at redhat dot com
  0 siblings, 0 replies; only message in thread
From: tromey at redhat dot com @ 2012-12-19 14:44 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14977

             Bug #: 14977
           Summary: printf dies with null string
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com
    Classification: Unclassified


printf throws an exception if given a null string:

(gdb) printf "hi bob %s\n", 0
Cannot access memory at address 0x0

This seems unfriendly.  
I think printing (null) or the like would be better.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-19 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-19 14:44 [Bug cli/14977] New: printf dies with null string 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).