diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-08-06 19:02:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-08-06 19:02:15 +0000 |
commit | 8da614df6415a7aa01ba8ebf74acef32183266c4 (patch) | |
tree | 6c5f8af1dba8a1c5ff38c566d6bbc5e9aa80a260 /gdb/xstormy16-tdep.c | |
parent | 2210942396dab942a86cb6777c705554b84ebb0e (diff) | |
download | gdb-8da614df6415a7aa01ba8ebf74acef32183266c4.zip gdb-8da614df6415a7aa01ba8ebf74acef32183266c4.tar.gz gdb-8da614df6415a7aa01ba8ebf74acef32183266c4.tar.bz2 |
* dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
Throughout, call read_encoded_value with ptr_size rather than addr_size.
(decode_frame_entry_1): Remove redundant setting of
addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
on examined frame section. Add comment to explain why.
* gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
comment to explain usage.
* gdbarch.c: Regenerate.
* gdbarch.h: Regenerate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
Diffstat (limited to 'gdb/xstormy16-tdep.c')
-rw-r--r-- | gdb/xstormy16-tdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c index 9e62d87..a595349 100644 --- a/gdb/xstormy16-tdep.c +++ b/gdb/xstormy16-tdep.c @@ -809,6 +809,7 @@ xstormy16_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_ptr_bit (gdbarch, 2 * TARGET_CHAR_BIT); set_gdbarch_addr_bit (gdbarch, 4 * TARGET_CHAR_BIT); + set_gdbarch_dwarf2_addr_size (gdbarch, 4); set_gdbarch_address_to_pointer (gdbarch, xstormy16_address_to_pointer); set_gdbarch_pointer_to_address (gdbarch, xstormy16_pointer_to_address); |