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 remote/21761] New: Missed step-resume breakpoints when placed over a false conditional breakpoint


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

            Bug ID: 21761
           Summary: Missed step-resume breakpoints when placed over a
                    false conditional breakpoint
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: remote
          Assignee: unassigned at sourceware dot org
          Reporter: simon.marchi at ericsson dot com
  Target Milestone: ---

A step-resume breakpoint placed at the same address as a conditional breakpoint
whose condition is false (condition evaluated by target) is missed.  The reason
is that GDB doesn't consider the step-resume breakpoint when deciding what the
final condition for this address should be.  As a result, we place a breakpoint
whose condition is false.  The placed breakpoint should be unconditional,
because step-resume breakpoints are always unconditional.

I'll attach a test that fails with running with native-gdbserver:

$ make check TESTS="*/step-into-function-on-false-break-cond.exp"
RUNTESTFLAGS="--target_board=native-gdbserver"

-- 
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]