2005-02-23 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Wed, 23 Feb 2005 15:24:22 +0000 (15:24 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 23 Feb 2005 15:24:22 +0000 (15:24 +0000)
* cli/cli-dump.c (dump_bfd_file): Replace magic constant with
SEC_XXX flags.

gdb/ChangeLog
gdb/cli/cli-dump.c

index 4d878dd4391a25fadd880140c7f1ee6d703ba85a..6c3a9e270dc247fe077bf42dde0f93afd0c5bdec 100644 (file)
@@ -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.
index 295e2eb84ca26a8a5333fe4a8bba6d74ba272b16..724f776f4b8280be37f67ca6b9d3f2daacdde013 100644 (file)
@@ -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);
 }