Read 2 byte (16 bit addresses) when needed.
authorAndrew Cagney <cagney@redhat.com>
Tue, 29 Feb 2000 05:10:04 +0000 (05:10 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 29 Feb 2000 05:10:04 +0000 (05:10 +0000)
gdb/ChangeLog
gdb/dwarf2read.c

index fbe07d43bf724fd1dca96b3088194819a5996841..493bd7d9dcb4f55d9d0a71e36cd0e44bcace043c 100644 (file)
@@ -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_*):
index 67898e431593dc95c6a24ef31fc847e3b7d3451e..299619a74cda22cef13bc66c6add606aa111c9a5 100644 (file)
@@ -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;