Add struct to record dwarf line number state machine.
authorDoug Evans <dje@google.com>
Wed, 27 May 2015 21:44:29 +0000 (14:44 -0700)
committerDoug Evans <dje@google.com>
Wed, 27 May 2015 21:44:29 +0000 (14:44 -0700)
commitd9b3de22f33e400f7f409cce3acf6c7dab07dd79
treec566f812e375d8a5a8840fd0e5feb128d622e807
parent8ded2ddc8bac501c1ee0706cb3d3ef3fb1c10b85
Add struct to record dwarf line number state machine.

gdb/ChangeLog:

* dwarf2read.c (lnp_state_machine): New typedef.
(lnp_reader_state): New typedef.
(dwarf_record_line_1): Renamed from dwarf_record_line.
All callers updated.
(dwarf_record_line): New function.
(init_lnp_state_machine): New function.
(check_line_address): Replace p_record_line parameter with state.
All callers updated.
(dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
Update to record state in lnp_state_machine.
gdb/ChangeLog
gdb/dwarf2read.c