-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DebugInfoD tests + fixing issues exposed by tests (#85693)
Finally getting back to Debuginfod tests: I've migrated the tests in my [earlier PR](#79181) from shell to API (at @JDevlieghere's suggestion) and addressed a couple issues that came about during testing. The tests first test the "normal" situation (no DebugInfoD involvement, just normal debug files sitting around), then the "no debug info" situation (to make sure the test is seeing failure properly), then it tests to validate that when Debuginfod returns the symbols, things work properly. This is duplicated for DWP/split-dwarf scenarios. --------- Co-authored-by: Kevin Frei <[email protected]>
- Loading branch information
Showing
10 changed files
with
537 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# Order matters here: the first symbol locator prevents further searching. | ||
# For DWARF binaries that are both stripped and split, the Default plugin | ||
# will return the stripped binary when asked for the ObjectFile, which then | ||
# prevents an unstripped binary from being requested from the Debuginfod | ||
# provider. | ||
add_subdirectory(Debuginfod) | ||
add_subdirectory(Default) | ||
if (CMAKE_SYSTEM_NAME MATCHES "Darwin") | ||
add_subdirectory(DebugSymbols) | ||
endif() | ||
add_subdirectory(Debuginfod) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
C_SOURCES := main.c | ||
|
||
# For normal (non DWP) Debuginfod tests, we need: | ||
|
||
# * The "full" binary: a.out.debug | ||
# Produced by Makefile.rules with KEEP_FULL_DEBUG_BINARY set to YES and | ||
# SPLIT_DEBUG_SYMBOLS set to YES | ||
|
||
# * The stripped binary (a.out) | ||
# Produced by Makefile.rules with SPLIT_DEBUG_SYMBOLS set to YES | ||
|
||
# * The 'only-keep-debug' binary (a.out.dbg) | ||
# Produced below | ||
|
||
# * The .uuid file (for a little easier testing code) | ||
# Produced below | ||
|
||
# Don't strip the debug info from a.out: | ||
SPLIT_DEBUG_SYMBOLS := YES | ||
SAVE_FULL_DEBUG_BINARY := YES | ||
GEN_GNU_BUILD_ID := YES | ||
|
||
all: a.out.uuid a.out | ||
|
||
include Makefile.rules |
Oops, something went wrong.