aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2012-12-13 14:58:26 +0000
committerPierre Muller <muller@sourceware.org>2012-12-13 14:58:26 +0000
commit78ea0eca85031f7a37097311f90323347fb89d2d (patch)
tree55ca30d60e21ed690464739dc063c2b71d8e2f2d /gdb
parent3999122f0c8766df3a55462df626d607ebe5a735 (diff)
downloadgdb-78ea0eca85031f7a37097311f90323347fb89d2d.zip
gdb-78ea0eca85031f7a37097311f90323347fb89d2d.tar.gz
gdb-78ea0eca85031f7a37097311f90323347fb89d2d.tar.bz2
* coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
(IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks for already defined macros.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/coff-pe-read.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 392ef7a..84a1390 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2012-12-13 Pierre Muller <muller@sourceware.org>
+ * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
+ (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
+ for already defined macros.
+
+2012-12-13 Pierre Muller <muller@sourceware.org>
+
* coff-pe-read.h (pe_text_section_offset): Declare new function.
* coff-pe-read.c (debug_coff_pe_read): New static variable.
(struct read_pe_section_data): Add section_name field.
diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c
index 10bba78..01b5b82 100644
--- a/gdb/coff-pe-read.c
+++ b/gdb/coff-pe-read.c
@@ -55,15 +55,9 @@ struct read_pe_section_data
char *section_name; /* Recorded section name. */
};
-#ifndef IMAGE_SCN_CNT_CODE
-# define IMAGE_SCN_CNT_CODE 0x20
-#endif
-#ifndef IMAGE_SCN_CNT_INITIALIZED_DATA
-# define IMAGE_SCN_CNT_INITIALIZED_DATA 0x40
-#endif
-#ifndef IMAGE_SCN_CNT_UNINITIALIZED_DATA
-# define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x80
-#endif
+#define IMAGE_SCN_CNT_CODE 0x20
+#define IMAGE_SCN_CNT_INITIALIZED_DATA 0x40
+#define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x80
#define PE_SECTION_INDEX_TEXT 0
#define PE_SECTION_INDEX_DATA 1
#define PE_SECTION_INDEX_BSS 2