Skip to content

Commit

Permalink
Merge pull request #35 from quarkslab/add_mangled_name
Browse files Browse the repository at this point in the history
Add function's mangled name in the protobuf
  • Loading branch information
RobinDavid committed May 28, 2024
2 parents 21b253b + a24b267 commit 1291bc3
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 325 deletions.
2 changes: 2 additions & 0 deletions bindings/python/quokka/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ class Function(dict):
Attributes:
start: Start address
name: Function name
mangled_name: Function mangled name (it might be equal to the function name)
program: Program reference
type: Function type
index_to_address: Mapping of Chunks to Protobuf indexes
Expand All @@ -559,6 +560,7 @@ def __init__(self, func: "quokka.pb.Quokka.Function", program: quokka.Program):
super(dict, self).__init__()
self.start: int = program.addresser.absolute(func.offset)
self.name: str = func.name
self.mangled_name: str = func.mangled_name or func.name

self.program: quokka.Program = program

Expand Down
Loading

0 comments on commit 1291bc3

Please sign in to comment.