aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-10-26 10:57:04 +0000
committerNick Clifton <nickc@redhat.com>2001-10-26 10:57:04 +0000
commita9306dbdc6f0b3bb714c0aa5099a5ba7147a37b8 (patch)
treebca43d97398cb5af3d988af95a97111d4028ce70
parent02cc9f49aed3ba8b9dc21450e567f16c5f9981fe (diff)
downloadgdb-a9306dbdc6f0b3bb714c0aa5099a5ba7147a37b8.zip
gdb-a9306dbdc6f0b3bb714c0aa5099a5ba7147a37b8.tar.gz
gdb-a9306dbdc6f0b3bb714c0aa5099a5ba7147a37b8.tar.bz2
Fix usage of H_GET_32/16. Likewise with H_PUT_32/16.
-rw-r--r--include/coff/ChangeLog5
-rw-r--r--include/coff/external.h8
2 files changed, 9 insertions, 4 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog
index 5cc0aac..5589d97 100644
--- a/include/coff/ChangeLog
+++ b/include/coff/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-26 Christian Groessler <cpg@aladdin.de>
+
+ * external.h (GET_LINENO_LNNO): Fix usage of H_GET_32/16.
+ (PUT_LINENO_LNNO): Likewise with H_PUT_32/16.
+
2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
* ti.h (GET_SCNHDR_PAGE): Fix compile time warning.
diff --git a/include/coff/external.h b/include/coff/external.h
index 1e5f028..19636da 100644
--- a/include/coff/external.h
+++ b/include/coff/external.h
@@ -113,12 +113,12 @@ struct external_lineno
#define LINESZ (4 + L_LNNO_SIZE)
#if L_LNNO_SIZE == 4
-#define GET_LINENO_LNNO H_GET_32
-#define PUT_LINENO_LNNO H_PUT_32
+#define GET_LINENO_LNNO(abfd, ext) H_GET_32 (abfd, (ext->l_lnno))
+#define PUT_LINENO_LNNO(abfd, val, ext) H_PUT_32 (abfd, val, (ext->l_lnno))
#endif
#if L_LNNO_SIZE == 2
-#define GET_LINENO_LNNO H_GET_16
-#define PUT_LINENO_LNNO H_PUT_16
+#define GET_LINENO_LNNO(abfd, ext) H_GET_16 (abfd, (ext->l_lnno))
+#define PUT_LINENO_LNNO(abfd, val, ext) H_PUT_16 (abfd, val, (ext->l_lnno))
#endif
#endif /* not DO_NOT_DEFINE_LINENO */