public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/14974] New: gdb messes up multi-breakpoints on rerun
@ 2012-12-19 10:01 dje at google dot com
  2012-12-21  1:09 ` [Bug breakpoints/14974] " dje at google dot com
  2012-12-24  3:48 ` jan.kratochvil at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dje at google dot com @ 2012-12-19 10:01 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 14974
           Summary: gdb messes up multi-breakpoints on rerun
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dje@google.com
    Classification: Unclassified


gdb is losing track of multi-breakpoint status across reruns.
1.1 becomes 1.2 and 1.2 becomes 1.1, and the disabled status gets switched.

To recreate this compile with -gdwarf-4 -fdebug-types-section, dunno why this
is so yet.

Passing (compile with -g)

(gdb) PASS: gdb.cp/mb-inline.exp: run to breakpoint 2
disable 1.2^M
(gdb) PASS: gdb.cp/mb-inline.exp: disabling location: disable
run ^M
The program being debugged has been started already.^M
Start it from the beginning? (y or n) y^M
Starting program:
/usr/local/google/home/dje/gnu/sourceware/pure-gdb/build/obj64/gdb/testsuite/gdb.cp/mb-inline
^M
^M
Breakpoint 1, foo (i=0) at ../../../src/gdb/testsuite/gdb.cp/mb-inline.h:26^M
26        return i; // set breakpoint here^M
(gdb) PASS: gdb.cp/mb-inline.exp: disabling location: run to breakpoint
info break^M
Num     Type           Disp Enb Address            What^M
1       breakpoint     keep y   <MULTIPLE>         ^M
        breakpoint already hit 1 time^M
1.1                         y     0x00000000004005a7 in foo(int) at
../../../src/gdb/testsuite/gdb.cp/mb-inline.h:26^M
1.2                         n     0x0000000000400603 in foo(int) at
../../../src/gdb/testsuite/gdb.cp/mb-inline.h:26^M
(gdb) PASS: gdb.cp/mb-inline.exp: disabled breakpoint 1.2

Failing (compile with -gdwarf-4 -fdebug-types-section):

(gdb) PASS: gdb.cp/mb-inline.exp: run to breakpoint 2
disable 1.2^M
(gdb) PASS: gdb.cp/mb-inline.exp: disabling location: disable
run ^M
The program being debugged has been started already.^M
Start it from the beginning? (y or n) y^M
Starting program:
/usr/local/google/home/dje/gnu/sourceware/pure-gdb/build/obj64/gdb/testsuite/gdb.cp/mb-inline
^M
^M
Breakpoint 1, foo (i=1) at ../../../src/gdb/testsuite/gdb.cp/mb-inline.h:26^M
26        return i; // set breakpoint here^M
(gdb) FAIL: gdb.cp/mb-inline.exp: disabling location: run to breakpoint
info break^M
Num     Type           Disp Enb Address            What^M
1       breakpoint     keep y   <MULTIPLE>         ^M
        breakpoint already hit 1 time^M
1.1                         y     0x0000000000400603 in foo(int) at
../../../src/gdb/testsuite/gdb.cp/mb-inline.h:26^M
1.2                         n     0x00000000004005a7 in foo(int) at
../../../src/gdb/testsuite/gdb.cp/mb-inline.h:26^M
(gdb) PASS: gdb.cp/mb-inline.exp: disabled breakpoint 1.2

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

* [Bug breakpoints/14974] gdb messes up multi-breakpoints on rerun
  2012-12-19 10:01 [Bug breakpoints/14974] New: gdb messes up multi-breakpoints on rerun dje at google dot com
@ 2012-12-21  1:09 ` dje at google dot com
  2012-12-24  3:48 ` jan.kratochvil at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dje at google dot com @ 2012-12-21  1:09 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from dje at google dot com 2012-12-21 01:09:36 UTC ---
Data point: It may be the presence of .gdb_index and now -gdwarf-4
-fdebug-types-section that's required to repro.

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

* [Bug breakpoints/14974] gdb messes up multi-breakpoints on rerun
  2012-12-19 10:01 [Bug breakpoints/14974] New: gdb messes up multi-breakpoints on rerun dje at google dot com
  2012-12-21  1:09 ` [Bug breakpoints/14974] " dje at google dot com
@ 2012-12-24  3:48 ` jan.kratochvil at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-12-24  3:48 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com
         AssignedTo|unassigned at sourceware    |jan.kratochvil at redhat
                   |dot org                     |dot com

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-12-24 03:48:17 UTC ---
[patch] sort multi-loc bpt; fixes mb-inline.exp false gdbindex FAIL
http://sourceware.org/ml/gdb-patches/2012-12/msg00781.html

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

end of thread, other threads:[~2012-12-24  3:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-19 10:01 [Bug breakpoints/14974] New: gdb messes up multi-breakpoints on rerun dje at google dot com
2012-12-21  1:09 ` [Bug breakpoints/14974] " dje at google dot com
2012-12-24  3:48 ` jan.kratochvil 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).