-
-
Notifications
You must be signed in to change notification settings - Fork 91
feat(variables): add -O2 fixture for broader location coverage
#1042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JoshuaMoelans
wants to merge
5
commits into
joshua/test/variables_fixture
from
joshua/test/fixture_O2
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f10e19a
POC: add -O2 variables fixture for location coverage
JoshuaMoelans 9f3a7af
refactor(fixture): Build both variables fixtures from one source
JoshuaMoelans 8b7afc9
docs(fixture): Update README
JoshuaMoelans d8bc822
more readme
JoshuaMoelans d6eac4e
feat(fixture): Add SSE register and frame-base coverage to the -O2 build
JoshuaMoelans File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
106 changes: 106 additions & 0 deletions
106
symbolic-debuginfo/tests/snapshots/test_objects__elf_variables_opt.snap
This file contains hidden or 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,106 @@ | ||
| --- | ||
| source: symbolic-debuginfo/tests/test_objects.rs | ||
| expression: "FunctionsDebug::variables(&session, &functions)" | ||
| --- | ||
| > main (0x32) | ||
| variables: | ||
| result (local) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x28..0x31: register 3 | ||
|
|
||
| > optimized_out (0x4) | ||
| variables: | ||
| a (parameter) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x0..0x4: register 5 | ||
|
|
||
| > external_call (0x20) | ||
| variables: | ||
| a (parameter) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x0..0x14: register 5 | ||
| 0x14..0x1f: register 6 | ||
| kept (local) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x10..0x1c: register 3 | ||
| r (local) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x15..0x1b: register 0 | ||
|
|
||
| > across_call (0xd) | ||
| variables: | ||
| a (parameter) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x0..0xd: register 5 | ||
| doubled (local) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x3..0xd: register 1 | ||
| other (local) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0xa..0xc: register 0 | ||
|
|
||
| > registers (0x9) | ||
| variables: | ||
| a (parameter) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x0..0x9: register 5 | ||
| b (parameter) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x0..0x6: register 4 | ||
| sum (local) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x3..0x8: register 0 | ||
| product (local) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x6..0x9: register 4 | ||
|
|
||
| > inlining (0x1) | ||
| variables: | ||
| outer (parameter) | ||
| type: | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x0..0x1: register 5 | ||
|
|
||
| > aggregates (0x1) | ||
|
|
||
| > pointers (0x1) | ||
| variables: | ||
| num (parameter) | ||
| type: | ||
| > Pointer (8 bytes) | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x0..0x1: register 5 | ||
| num_ptr (parameter) | ||
| type: | ||
| > Pointer (8 bytes) | ||
| > Pointer (8 bytes) | ||
| > Primitive: int (SignedInt, 4 bytes) | ||
| 0x0..0x1: register 4 | ||
| str (parameter) | ||
| type: | ||
| > Pointer (8 bytes) | ||
| > Unknown | ||
| 0x0..0x1: register 1 | ||
| any (parameter) | ||
| type: | ||
| > Unknown | ||
| 0x0..0x1: register 2 | ||
| fn (parameter) | ||
| type: | ||
| > Pointer (8 bytes) | ||
| > Unknown | ||
| 0x0..0x1: register 8 | ||
|
|
||
| > primitives (0x1) |
This file contains hidden or 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
Binary file not shown.
Binary file not shown.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.