public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/15165] New: problems saving dprintf breakpoints
@ 2013-02-21  1:22 keiths at redhat dot com
  2013-02-26 21:09 ` [Bug breakpoints/15165] " marc.khouzam at ericsson dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: keiths at redhat dot com @ 2013-02-21  1:22 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 15165
           Summary: problems saving dprintf breakpoints
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: keiths@redhat.com
    Classification: Unclassified


(gdb) dprintf main,"hello"
Dprintf 1 at 0x4004dc: file comma.cc, line 13.
(gdb) save breakpoints bps
../../gdb/gdb/breakpoint.c:13309: internal-error: unhandled breakpoint type 29
A problem internal to GDB has been detected,
further debugging may prove unreliable.

We need to add a dprintf_print_recreate to "do the right thing."

There are no tests for this in the test suite at all (or the internal error
would have been seen long before now).

As a side note, simply adding bp_dprintf to the if/else chain in
bkpt_print_recreate isn't sufficient. It produces output like:
dprintf main
commands
  printf "hello"
  continue
end

which is invalid input. [dprintf /must/ have a format string argument]

-- 
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] 7+ messages in thread

end of thread, other threads:[~2013-04-24  6:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-21  1:22 [Bug breakpoints/15165] New: problems saving dprintf breakpoints keiths at redhat dot com
2013-02-26 21:09 ` [Bug breakpoints/15165] " marc.khouzam at ericsson dot com
2013-04-18  5:38 ` teawater at gmail dot com
2013-04-18  5:39 ` teawater at gmail dot com
2013-04-23  2:42 ` cvs-commit at gcc dot gnu.org
2013-04-23  3:05 ` teawater at gmail dot com
2013-04-24  6:20 ` cvs-commit at gcc dot gnu.org

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).