-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid 'nice' printout for LLVM DWARF extensions
The 'info address' command tries to use a 'nice' printout mechanism if a given location description is either made off or contains pieces that are made of a very simple operations (locexpr_describe_location_piece). The problem is that the current mechanism uses a linear scan of the DWARF expression byte stream and doesn't expect the possibility of nested composite location description. This implementation keeps the backward compatibility with the previously expected output, but at the same time gives up on a 'nice' printout if a given expression contains operations that are not supported by the locexpr_describe_location_piece function. This is done by introducing yet another DWARF expression byte stream scanning function. A better solution would be to have a pre-parsed representation of the byte stream where every operation would be represented by its own class and avoid having more and more large switch/case statement, but that would require a bigger change. Change-Id: I471575230773a8a8a7bd25bfc7985248f34f96ed (cherry picked from commit 856142f)
- Loading branch information
1 parent
e17b096
commit a8e8f70
Showing
1 changed file
with
204 additions
and
7 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