This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
In PR 6832 comment #5, you said that updating stash->sec_info_ptr after comp_unit_find_line would be wrong. I reckon otherwise. :-)
sec_info_ptr is used to find the start of the .debug_info section containing the CU that comp_unit_find_line is investigating. What CU is that? Well, it's the one that parse_comp_unit operated on. So sec_info_ptr ought to be left as it was at the start of parse_comp_unit. Since comp_unit_find_line uses the output of parse_comp_unit, ie. previously parsed debug info, rather than firing off parse_comp_unit itself to look at a new CU, I think the following patch is required.
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |