-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make debug_syms a per-request attribute
The Symbolizer currently treats the debug_syms setting as immutable: it is set once for the instance and cannot be changed. The Inspector, on the other hand, has it be a per-request attribute. The latter is obviously more flexible, as the format can trivially be expressed with it. Conceptually, it does not make sense to have this setting apply to the Symbolizer instance and, hence, to all sources. That is because there simply is no concept of debug symbols for anything but ELF (which happens to be able to contain DWARF). To make this explicit, move this setting to the individual sources that it does affect. That is quite a bit more verbose, but it is the better and more flexible design. If it becomes a problem moving forward, we could consider introducing a `DwarfOpts` setting or similar. Note that the "code info" setting is somewhat similar, but different enough to have a different reasoning applied: it is a mere property of the format whether it contains line and source code information, but conceptually each symbolization source could support it. As such, having it be a property of the Symbolizer makes a bit more sense. It's still limiting in the sense that it can't be flipped between requests, and so ultimately we may move it into the source representations as well, but for now we don't go down that route. Closes: #349 Signed-off-by: Daniel Müller <[email protected]>
- Loading branch information
Showing
6 changed files
with
161 additions
and
70 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
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
Oops, something went wrong.