diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:01:57 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:01:57 +0000 |
commit | 88c643b6fec27eec436c8d138fee6346e92337d6 (patch) | |
tree | 82cd13b2f3cde1c9e5f79689ba4e6ba67694843f /packages/Python/lldbsuite/test/functionalities/fat_archives/TestFatArchives.py | |
parent | 94994d372d014ce4c8758b9605d63fae651bd8aa (diff) |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/fat_archives/TestFatArchives.py')
-rw-r--r-- | packages/Python/lldbsuite/test/functionalities/fat_archives/TestFatArchives.py | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/fat_archives/TestFatArchives.py b/packages/Python/lldbsuite/test/functionalities/fat_archives/TestFatArchives.py deleted file mode 100644 index 80240534c368..000000000000 --- a/packages/Python/lldbsuite/test/functionalities/fat_archives/TestFatArchives.py +++ /dev/null @@ -1,61 +0,0 @@ -""" -Test some lldb command abbreviations. -""" -from __future__ import print_function - - -import lldb -import os -import time -import lldbsuite.support.seven as seven -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -from lldbsuite.test import lldbutil - - -class FatArchiveTestCase(TestBase): - - mydir = TestBase.compute_mydir(__file__) - - NO_DEBUG_INFO_TESTCASE = True - - @skipUnlessDarwin - def test_breakpoint_resolution_dwarf(self): - if self.getArchitecture() == 'x86_64': - self.build() - self.main() - else: - self.skipTest( - "This test requires x86_64 as the architecture for the inferior") - - def main(self): - '''This test compiles a quick example by making a fat file (universal) full of - skinny .o files and makes sure we can use them to resolve breakpoints when doing - DWARF in .o file debugging. The only thing this test needs to do is to compile and - set a breakpoint in the target and verify any breakpoint locations have valid debug - info for the function, and source file and line.''' - exe = self.getBuildArtifact("a.out") - - # Create the target - target = self.dbg.CreateTarget(exe) - - # Create a breakpoint by name - breakpoint = target.BreakpointCreateByName('foo', exe) - self.assertTrue(breakpoint, VALID_BREAKPOINT) - - # Make sure the breakpoint resolves to a function, file and line - for bp_loc in breakpoint: - # Get a section offset address (lldb.SBAddress) from the breakpoint - # location - bp_loc_addr = bp_loc.GetAddress() - line_entry = bp_loc_addr.GetLineEntry() - function = bp_loc_addr.GetFunction() - self.assertTrue( - function.IsValid(), - "Verify breakpoint in fat BSD archive has valid function debug info") - self.assertTrue( - line_entry.GetFileSpec(), - "Verify breakpoint in fat BSD archive has source file information") - self.assertTrue( - line_entry.GetLine() != 0, - "Verify breakpoint in fat BSD archive has source line information") |