Skip to content

Commit

Permalink
DW_CFA_AARCH64_negate_ra_state
Browse files Browse the repository at this point in the history
  • Loading branch information
Seva Alekseyev committed Dec 7, 2023
1 parent 01dfbb9 commit bee47ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elftools/dwarf/callframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _parse_instructions(self, structs, offset, end_offset):
args = [primary_arg]
# primary == 0 and real opcode is extended
elif opcode in (DW_CFA_nop, DW_CFA_remember_state,
DW_CFA_restore_state, DW_CFA_GNU_window_save):
DW_CFA_restore_state, DW_CFA_AARCH64_negate_ra_state):
args = []
elif opcode == DW_CFA_set_loc:
args = [
Expand Down
3 changes: 2 additions & 1 deletion elftools/dwarf/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@
DW_CFA_val_offset = 0x14
DW_CFA_val_offset_sf = 0x15
DW_CFA_val_expression = 0x16
DW_CFA_GNU_window_save = 0x2d
DW_CFA_GNU_window_save = 0x2d # Used on SPARC, not in the corpus
DW_CFA_AARCH64_negate_ra_state = 0x2d
DW_CFA_GNU_args_size = 0x2e


Expand Down
2 changes: 1 addition & 1 deletion elftools/dwarf/descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _full_reg_name(regnum):
name, factored_offset, factored_offset + pc)
pc += factored_offset
elif name in ( 'DW_CFA_remember_state', 'DW_CFA_restore_state',
'DW_CFA_nop'):
'DW_CFA_nop', 'DW_CFA_AARCH64_negate_ra_state'):
s += ' %s\n' % name
elif name == 'DW_CFA_def_cfa':
s += ' %s: %s ofs %s\n' % (
Expand Down

0 comments on commit bee47ce

Please sign in to comment.