-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#6940: Do not always load binaries in view tool (#6941)
The view tool was blindly loading binaries even for traces that have encodings. This leads to fatal errors when binaries have changed, even when the change has no impact on viewing a trace. We fix that here by reading the filtype at init time. Work around the #6942 crash by always setting the disasm syntax to DR style for REGDEPS traces. This change actually sets the disasm syntax to AT&T by default if no module path is passed in; which is what it is supposed to do: but it was not doing that and this breaks 3 tests comparing DR-style output. We put in a quick fix to request DR style for those tests. Tested locally where the view tool asserts without this fix. Issue: #6940, #6942 Fixes #6940
- Loading branch information
1 parent
009c27b
commit 2fe13f2
Showing
2 changed files
with
31 additions
and
16 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