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 | 244106e8631dd92999e566fb523e90a6fe901fd1 (patch) | |
tree | 934d50a7b4875332bf71884a9d48d398e4541432 /gdb/dwarf2read.c | |
parent | 33ee05bca27ca7ba73f69b20b8376c125990f911 (diff) | |
download | gdb-244106e8631dd92999e566fb523e90a6fe901fd1.zip gdb-244106e8631dd92999e566fb523e90a6fe901fd1.tar.gz gdb-244106e8631dd92999e566fb523e90a6fe901fd1.tar.bz2 |
Read 2 byte (16 bit addresses) when needed.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 67898e4..299619a 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; |