GDB: Work around buggy dwarf line information produced by Codewarrior Version 5.0...
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 20 Sep 2018 17:52:07 +0000 (19:52 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 8 Oct 2018 08:59:59 +0000 (10:59 +0200)
commitc258c396faa626a4c7929a5ec97ee9b294073c5e
tree3c32354dc94c97b4b1ad9ba2fce85a43bbb8d915
parent25cbdcbbc5d2d4ca834790b1d370fe5159b560de
GDB: Work around buggy dwarf line information produced by Codewarrior Version 5.0.40 (build 15175).

gdb/ChangeLog:
* dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
  (check_producer): Check if the producer is codewarrior.
  (producer_is_codewarrior): New function.
  (lnp_state_machine::record_line): Ignore is_stmt flag for records
   produced by codewarrior.
  (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
gdb/ChangeLog
gdb/dwarf2read.c