diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-06 19:44:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-06 19:44:04 +0000 |
commit | b6807d988a28dc2718bae1abba1f28779bc0c3c3 (patch) | |
tree | bb4adece022138ab739318623eec8dce672a03b8 /gdb/dwarf2loc.h | |
parent | 3aef2284c6976e2b497d5e712cf0cedcc14bed58 (diff) | |
download | gdb-b6807d988a28dc2718bae1abba1f28779bc0c3c3.zip gdb-b6807d988a28dc2718bae1abba1f28779bc0c3c3.tar.gz gdb-b6807d988a28dc2718bae1abba1f28779bc0c3c3.tar.bz2 |
* dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
(indirect_pieced_value): Call dwarf2_fetch_constant_bytes
if needed.
* dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
* dwarf2read.c (write_constant_as_bytes)
(dwarf2_fetch_constant_bytes): New functions.
gdb/testsuite
* gdb.dwarf2/implptrconst.c: New file.
* gdb.dwarf2/implptrconst.exp: New file.
* lib/dwarf.exp (Dwarf::_nz_quote): New proc.
(Dwarf::_handle_DW_FORM): Handle DW_FORM_block1.
(Dwarf::_location): Handle DW_OP_GNU_implicit_pointer.
Diffstat (limited to 'gdb/dwarf2loc.h')
-rw-r--r-- | gdb/dwarf2loc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h index 78448e6..9bc8ca5 100644 --- a/gdb/dwarf2loc.h +++ b/gdb/dwarf2loc.h @@ -72,6 +72,11 @@ struct dwarf2_locexpr_baton dwarf2_fetch_die_loc_cu_off CORE_ADDR (*get_frame_pc) (void *baton), void *baton); +extern const gdb_byte *dwarf2_fetch_constant_bytes (sect_offset, + struct dwarf2_per_cu_data *, + struct obstack *, + LONGEST *); + struct type *dwarf2_get_die_type (cu_offset die_offset, struct dwarf2_per_cu_data *per_cu); |