Move dwarf2_read_addr_index declaration to dwarf2/read.h

The implementation is in dwarf2/read.c, so the declaration belongs in
dwarf2/read.h.  Also, move the documentation there.

gdb/ChangeLog:

	* dwarf2/loc.h (dwarf2_read_addr_index): Move...
	* dwarf2/read.h (dwarf2_read_addr_index): ... here.
	* dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
This commit is contained in:
Simon Marchi
2020-02-25 23:38:26 -05:00
parent e0b317de31
commit 450a1bfc7f
4 changed files with 16 additions and 9 deletions

View File

@ -529,6 +529,14 @@ extern struct dwz_file *dwarf2_get_dwz_file
struct type *dwarf2_get_die_type (cu_offset die_offset,
struct dwarf2_per_cu_data *per_cu);
/* Given an index in .debug_addr, fetch the value.
NOTE: This can be called during dwarf expression evaluation,
long after the debug information has been read, and thus per_cu->cu
may no longer exist. */
CORE_ADDR dwarf2_read_addr_index (dwarf2_per_cu_data *per_cu,
unsigned int addr_index);
/* When non-zero, dump line number entries as they are read in. */
extern unsigned int dwarf_line_debug;