diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-07-23 22:05:20 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-07-23 22:05:20 +0000 |
commit | 32b05c072b89ff09199bd1ecd2608188ab61364f (patch) | |
tree | 630a8b40707f47711575b8bb03e9fddf483c4468 | |
parent | 8567c30fd0fb7051a9da9e154c0e1f0cf742a656 (diff) | |
download | gdb-32b05c072b89ff09199bd1ecd2608188ab61364f.zip gdb-32b05c072b89ff09199bd1ecd2608188ab61364f.tar.gz gdb-32b05c072b89ff09199bd1ecd2608188ab61364f.tar.bz2 |
* dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
(decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
encoding.
(dwarf2_build_frame_info): Adjust for removal of `addr_size'
member of `struct comp_unit'.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/dwarf2-frame.c | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3957056..1cf613f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2004-07-24 Mark Kettenis <kettenis@gnu.org> + + * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member. + (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE + encoding. + (dwarf2_build_frame_info): Adjust for removal of `addr_size' + member of `struct comp_unit'. + 2004-07-23 Andrew Cagney <cagney@gnu.org> * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 7e61838..005592c 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -890,9 +890,6 @@ struct comp_unit /* Linked list of CIEs for this object. */ struct dwarf2_cie *cie; - /* Address size for this unit - from unit header. */ - unsigned char addr_size; - /* Pointer to the .debug_frame section loaded into memory. */ char *dwarf_frame_buffer; @@ -1284,9 +1281,8 @@ decode_frame_entry_1 (struct comp_unit *unit, char *start, int eh_frame_p) cie->cie_pointer = cie_pointer; /* The encoding for FDE's in a normal .debug_frame section - depends on the target address size as specified in the - Compilation Unit Header. */ - cie->encoding = encoding_for_size (unit->addr_size); + depends on the target address size. */ + cie->encoding = DW_EH_PE_absptr; /* Check version number. */ cie_version = read_1_byte (unit->abfd, buf); @@ -1557,7 +1553,6 @@ dwarf2_build_frame_info (struct objfile *objfile) /* Build a minimal decoding of the DWARF2 compilation unit. */ unit.abfd = objfile->obfd; unit.objfile = objfile; - unit.addr_size = objfile->obfd->arch_info->bits_per_address / 8; unit.dbase = 0; unit.tbase = 0; |