[lldb-dev] [Bug 24668] New: Breakpoints not being resolved correctly

via lldb-dev lldb-dev at lists.llvm.org
Tue Sep 1 15:48:22 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24668

            Bug ID: 24668
           Summary: Breakpoints not being resolved correctly
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: zturner at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

A number of tests which are seemingly unrelated fail because they all rely on
being able to set a breakpoint and then have it resolve dynamically once the
executable is run.

In certain instances, this doesn't work correctly on Windows, leading to output
similar to the following:


runCmd: breakpoint list -f
output: Current breakpoints:
1: file = 'main.cpp', line = 36, exact_match = 0, locations = 1
  1.1: where = a.out`void * step_thread_func(void) + 3 at main.cpp:36, address
= a.out[0x00412023], unresolved, hit count = 0 



Expecting sub string: 1: file = 'main.cpp', line = 36, locations = 1
Not matched

FAIL

Traceback (most recent call last):
  File "D:\src\llvm\tools\lldb\test\lldbtest.py", line 615, in wrapper
    func(*args, **kwargs)
  File "D:\src\llvm\tools\lldb\test\lldbtest.py", line 615, in wrapper
    func(*args, **kwargs)
  File "D:\src\llvm\tools\lldb\test\lldbtest.py", line 615, in wrapper
    func(*args, **kwargs)
  File "D:\src\llvm\tools\lldb\test\lldbtest.py", line 551, in wrapper
    return func(self, *args, **kwargs)
  File
"D:\src\llvm\tools\lldb\test\functionalities\thread\create_during_step\TestCreateDuringStep.py",
line 46, in test_step_inst_with_dwarf
    self.create_during_step_inst_test()
  File
"D:\src\llvm\tools\lldb\test\functionalities\thread\create_during_step\TestCreateDuringStep.py",
line 75, in create_during_step_inst_test
    self.create_during_step_base("thread step-inst -m all-threads", 'stop
reason = instruction step')
  File
"D:\src\llvm\tools\lldb\test\functionalities\thread\create_during_step\TestCreateDuringStep.py",
line 95, in create_during_step_base
    substrs = ["1: file = 'main.cpp', line = %d, locations = 1" %
self.breakpoint])
  File "D:\src\llvm\tools\lldb\test\lldbtest.py", line 2630, in expect
    msg if msg else EXP_MSG(str, exe))
AssertionError: False is not True : Breakpoint location shown correctly

As can be seen, the breakpoint is set, but it is unresolved so it has no
breakpoitn locations, causing the test to fail.

This affects (at a minimum) the following set of tests:

TestThreadStates.ThreadStateTestCase.test_process_interrupt_with_dwarf
TestThreadStates.ThreadStateTestCase.test_process_state_with_dwarf
TestCreateDuringStep.CreateDuringStepTestCase.test_step_in_with_dwarf
TestCreateDuringStep.CreateDuringStepTestCase.test_step_inst_with_dwarf
TestCreateDuringStep.CreateDuringStepTestCase.test_step_over_with_dwarf
TestExitDuringBreak.ExitDuringBreakpointTestCase.test_with_dwarf
TestMultipleBreakpoints.MultipleBreakpointTestCase.test_with_dwarf
TestThreadStates.ThreadStateTestCase.test_state_after_breakpoint_with_dwarf

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150901/c1d902a2/attachment-0001.html>


More information about the lldb-dev mailing list