diff options
author | mark <mark> | 2012-05-01 19:12:21 +0000 |
---|---|---|
committer | mark <mark> | 2012-05-01 19:12:21 +0000 |
commit | 4fe27919590251399a09609a6a2fdd11fd4ac21c (patch) | |
tree | 95c99715baccd3f97f07a6f4cfb67d049fe1d2e0 /gold/dwarf_reader.h | |
parent | 655ff4729ab8fc72e5b6ba4ef012be1b65cb8db1 (diff) | |
download | binutils-redhat-4fe27919590251399a09609a6a2fdd11fd4ac21c.tar.gz |
gold: Handle DW_AT_high_pc as offset from DW_AT_low_pc in gdb-index.cc.
* dwarf_reader.cc (Dwarf_die::address_attribute): New function.
* dwarf_reader.h (Dwarf_die::address_attribute): Likewise.
* gdb-index.cc (Gdb_index_info_reader::record_cu_ranges): Handle
DW_AT_high_pc as offset from DW_AT_low_pc.
* testsuite/Makefile.am (gdb_index_test_3.sh): New test case.
* testsuite/Makefile.in: Regenerate.
* testsuite/gdb_index_test_3.c: New test source file.
* testsuite/gdb_index_test_3.sh: New test source file.
Diffstat (limited to 'gold/dwarf_reader.h')
-rw-r--r-- | gold/dwarf_reader.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gold/dwarf_reader.h b/gold/dwarf_reader.h index 0c3dab6eec..de5722b79c 100644 --- a/gold/dwarf_reader.h +++ b/gold/dwarf_reader.h @@ -547,8 +547,11 @@ class Dwarf_die // Return the value of attribute ATTR as a reference. off_t - ref_attribute(unsigned int attr, - unsigned int* shndx); + ref_attribute(unsigned int attr, unsigned int* shndx); + + // Return the value of attribute ATTR as a address. + off_t + address_attribute(unsigned int attr, unsigned int* shndx); // Return the value of attribute ATTR as a flag. bool |