From: Andrew Cagney Date: Tue, 29 Feb 2000 05:10:04 +0000 (+0000) Subject: Read 2 byte (16 bit addresses) when needed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=244106e8631dd92999e566fb523e90a6fe901fd1;p=binutils-gdb.git Read 2 byte (16 bit addresses) when needed. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fbe07d43bf7..493bd7d9dcb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 29 15:14:56 2000 Andrew Cagney + + From 2000-02-22 Stephane Carrez : + * dwarf2read.c (read_address): Read 16-bits addresses. + 2000-02-28 Scott Bambrough * arm-linux-nat.c (fetch_nw_fpe_*): diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 67898e43159..299619a74cd 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -3487,6 +3487,9 @@ read_address (abfd, buf) switch (address_size) { + case 2: + retval = bfd_get_16 (abfd, (bfd_byte *) buf); + break; case 4: retval = bfd_get_32 (abfd, (bfd_byte *) buf); break;