diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-02-29 05:10:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-02-29 05:10:04 +0000 |
commit | b80cd228589e3c94bd33072fd3f5a5a16ca8d6dc (patch) | |
tree | a58ff0e33f8518d8ceb9f9fb90d275a76c492313 | |
parent | e2d483c7291267ace09385d172948f927b754ce8 (diff) | |
download | gdb-b80cd228589e3c94bd33072fd3f5a5a16ca8d6dc.tar.gz |
Read 2 byte (16 bit addresses) when needed.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 3 |
2 files changed, 8 insertions, 0 deletions
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 <cagney@b1.cygnus.com> + + From 2000-02-22 Stephane Carrez <stcarrez@worldnet.fr>: + * dwarf2read.c (read_address): Read 16-bits addresses. + 2000-02-28 Scott Bambrough <scottb@netwinder.org> * 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; |