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 breakpoints/22754] New: spurious duplicate breakpoint warning with dprintf


https://sourceware.org/bugzilla/show_bug.cgi?id=22754

            Bug ID: 22754
           Summary: spurious duplicate breakpoint warning with dprintf
           Product: gdb
           Version: 8.0.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

If I set a breakpoint and then use dprintf at the same location,
I get a note from gdb.  Here's an example from gdb running on itself:

(gdb) b main
Breakpoint 1 at 0x419d90: file ../../binutils-gdb/gdb/gdb.c, line 25.
(gdb) dprintf main,"%d\n", argc
Note: breakpoint 1 also set at pc 0x419d90.
Dprintf 2 at 0x419d90: file ../../binutils-gdb/gdb/gdb.c, line 25.


I think it would be better not to give the warning, as a breakpoint
and a dprintf are different sorts of things.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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