Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions objutils/dwarf/sm.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ def stack_op(self, stack):


class DynamicValue:

"""Represents a dynamic value (can only evaluated by a debugger) on the DWARF stack.
"""
"""Represents a dynamic value (can only evaluated by a debugger) on the DWARF stack."""

def __init__(self, expr: str):
self.expr = expr
Expand Down
8 changes: 6 additions & 2 deletions objutils/dwarf/traverser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,9 +1374,13 @@ def traverse_tree(self, entry: model.DebugInformationEntry, level: int = 0) -> N
lower_bound = 0
upper_bound = 0
if "lower_bound" in entry.attributes_map:
lower_bound = self.dwarf_expression(entry.attributes_map["lower_bound"].form, entry.attributes_map["lower_bound"].raw_value)
lower_bound = self.dwarf_expression(
entry.attributes_map["lower_bound"].form, entry.attributes_map["lower_bound"].raw_value
)
if "upper_bound" in entry.attributes_map:
upper_bound = self.dwarf_expression(entry.attributes_map["upper_bound"].form, entry.attributes_map["upper_bound"].raw_value)
upper_bound = self.dwarf_expression(
entry.attributes_map["upper_bound"].form, entry.attributes_map["upper_bound"].raw_value
)
print(
f"{' ' * level}{tag} '{name}'{type_info} [lower_bound={lower_bound}: upper_bound={upper_bound}] [off=0x{entry.offset:08x}]"
)
Expand Down
58 changes: 29 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ dev = [
"bumpver>=2023.1129",
"pre-commit>=3.7.0",
"pytest>=8.1.1,<10.0.0",
"black>=24.10,<27.0",
"black>=26.10.1,<27.0",
"ruff>=0.6.9",
"pyupgrade>=3.17.0",
"bandit>=1.7.10",
Expand Down
Loading