binutils-gdb/gdb/dwarf2
Simon Marchi e57933dc9c gdb/dwarf: make read_{loc,rng}list_index return sect_offset
I think it's wrong that read_loclist_index and read_rnglist_index return
a CORE_ADDR.  A CORE_ADDR is an address in the program.  These functions
return offset in sections (.debug_loclists and .debug_rnglists).  I
think sect_offset is more appropriate.

I'm wondering if struct attribute should have a "set_sect_offset"
method, that takes  a sect_offset parameter, or if it's better to be
left as a simple "unsigned".

gdb/ChangeLog:

	* dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
	a sect_offset.
	(read_attribute_reprocess): Adjust.

Change-Id: I0e22e0864130fb490072b41ae099762918b8ad4d
2021-02-02 10:42:12 -05:00
..
abbrev.c
abbrev.h
attribute.c gdb/dwarf: few fixes for handling DW_FORM_{rng,loc}listx 2021-02-02 10:40:51 -05:00
attribute.h gdb/dwarf: few fixes for handling DW_FORM_{rng,loc}listx 2021-02-02 10:40:51 -05:00
comp-unit.c
comp-unit.h
die.h gdb/dwarf: split dwarf2_cu::ranges_base in two 2021-02-02 10:42:11 -05:00
dwz.c
dwz.h
expr.c
expr.h
frame-tailcall.c
frame-tailcall.h
frame.c
frame.h
index-cache.c
index-cache.h
index-common.c
index-common.h
index-write.c
index-write.h
leb.c
leb.h
line-header.c
line-header.h
loc.c
loc.h
macro.c
macro.h
read.c gdb/dwarf: make read_{loc,rng}list_index return sect_offset 2021-02-02 10:42:12 -05:00
read.h
section.c
section.h
stringify.c
stringify.h