Skip to content

Commit

Permalink
hilda_client: fix monitor() when given symbol is str
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Jul 8, 2024
1 parent 966d512 commit be5e72d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hilda/hilda_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ def callback(hilda, frame, bp_loc, options):
:param dict options: User defined options.
"""
bp = bp_loc.GetBreakpoint()
symbol = hilda.breakpoints[bp.id].address # type: Symbol

symbol = hilda.symbol(hilda.frame.addr.GetLoadAddress(hilda.target)) # type: Symbol

# by default, attempt to resolve the symbol name through lldb
name = str(symbol.lldb_symbol)
Expand Down

0 comments on commit be5e72d

Please sign in to comment.