From e9c55a7bd7f322580c8c7ecd9ba15feba74488e8 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 23 Feb 2005 15:24:22 +0000 Subject: [PATCH] 2005-02-23 Andrew Cagney * cli/cli-dump.c (dump_bfd_file): Replace magic constant with SEC_XXX flags. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-dump.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4d878dd439..6c3a9e270d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-02-23 Andrew Cagney + + * cli/cli-dump.c (dump_bfd_file): Replace magic constant with + SEC_XXX flags. + 2005-02-22 Andrew Cagney * configure.ac: Only enaable insight when itcl is present. diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 295e2eb84c..724f776f4b 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); }