aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cli/cli-dump.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4d878dd..6c3a9e2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-23 Andrew Cagney <cagney@gnu.org>
+
+ * cli/cli-dump.c (dump_bfd_file): Replace magic constant with
+ SEC_XXX flags.
+
2005-02-22 Andrew Cagney <cagney@gnu.org>
* configure.ac: Only enaable insight when itcl is present.
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 295e2eb..724f776 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -218,7 +218,9 @@ dump_bfd_file (const char *filename, const char *mode,
bfd_set_section_size (obfd, osection, len);
bfd_set_section_vma (obfd, osection, vaddr);
bfd_set_section_alignment (obfd, osection, 0);
- bfd_set_section_flags (obfd, osection, 0x203);
+ bfd_set_section_flags (obfd, osection, (SEC_HAS_CONTENTS
+ | SEC_ALLOC
+ | SEC_LOAD));
osection->entsize = 0;
bfd_set_section_contents (obfd, osection, buf, 0, len);
}