diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/linux/add-symbols')
| -rw-r--r-- | packages/Python/lldbsuite/test/linux/add-symbols/Makefile | 9 | ||||
| -rw-r--r-- | packages/Python/lldbsuite/test/linux/add-symbols/TestTargetSymbolsAddCommand.py | 7 |
2 files changed, 9 insertions, 7 deletions
diff --git a/packages/Python/lldbsuite/test/linux/add-symbols/Makefile b/packages/Python/lldbsuite/test/linux/add-symbols/Makefile index c701797f0a7db..71a5c11a83d13 100644 --- a/packages/Python/lldbsuite/test/linux/add-symbols/Makefile +++ b/packages/Python/lldbsuite/test/linux/add-symbols/Makefile @@ -2,11 +2,12 @@ LEVEL = ../../make CXX_SOURCES := main.cpp LD_EXTRAS += -Wl,--build-id=none -localall : stripped.out all +all: stripped.out + stripped.out : a.out - $(OBJCOPY) --remove-section=.note.gnu.build-id --remove-section=.gnu_debuglink --strip-debug a.out stripped.out + $(OBJCOPY) --remove-section=.note.gnu.build-id --remove-section=.gnu_debuglink --strip-debug $< $@ clean:: - $(RM) stripped.out + $(RM) stripped.out -include $(LEVEL)/Makefile.rules
\ No newline at end of file +include $(LEVEL)/Makefile.rules diff --git a/packages/Python/lldbsuite/test/linux/add-symbols/TestTargetSymbolsAddCommand.py b/packages/Python/lldbsuite/test/linux/add-symbols/TestTargetSymbolsAddCommand.py index 477ddf9c15b12..946c151bb8faf 100644 --- a/packages/Python/lldbsuite/test/linux/add-symbols/TestTargetSymbolsAddCommand.py +++ b/packages/Python/lldbsuite/test/linux/add-symbols/TestTargetSymbolsAddCommand.py @@ -22,8 +22,8 @@ class TargetSymbolsAddCommand(TestBase): """Test that 'target symbols add' can load the symbols even if gnu.build-id and gnu_debuglink are not present in the module. Similar to test_add_dsym_mid_execution test for macos.""" - self.build(clean=True) - exe = os.path.join(os.getcwd(), "stripped.out") + self.build() + exe = self.getBuildArtifact("stripped.out") self.target = self.dbg.CreateTarget(exe) self.assertTrue(self.target, VALID_TARGET) @@ -46,7 +46,8 @@ class TargetSymbolsAddCommand(TestBase): self.expect("frame select", substrs=['main.c'], matching=False) # Tell LLDB that a.out has symbols for stripped.out - self.runCmd("target symbols add -s stripped.out a.out") + self.runCmd("target symbols add -s %s %s" % + (exe, self.getBuildArtifact("a.out"))) # Check that symbols are now loaded and main.c is in the output. self.expect("frame select", substrs=['main.c']) |
