summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-23 15:24:22 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-23 15:24:22 +0000
commitef72fdb6884dcd886085c42fcf68f71595917c04 (patch)
treee2915bfb3e99f6e72639134a819138786e0fb7e8 /gdb/cli
parent9d8c6635a4a19aa2dd400247ffb68b9b651cdb8a (diff)
downloadgdb-ef72fdb6884dcd886085c42fcf68f71595917c04.tar.gz
2005-02-23 Andrew Cagney <cagney@gnu.org>
* cli/cli-dump.c (dump_bfd_file): Replace magic constant with SEC_XXX flags.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-dump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 295e2eb84ca..724f776f4b8 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);
}