aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Duda <deo@logos-m.ru>2001-04-19 14:22:30 +0000
committerEgor Duda <deo@logos-m.ru>2001-04-19 14:22:30 +0000
commit3ee14d6850d46d9c0342d8b44d66110e8f2be3b6 (patch)
tree15f87cfa3e310c23991051e04b088201cd9fde24
parente8cec9646ed21bffa7edfb5709ed7b0327884036 (diff)
downloadnewlib-3ee14d6850d46d9c0342d8b44d66110e8f2be3b6.zip
newlib-3ee14d6850d46d9c0342d8b44d66110e8f2be3b6.tar.gz
newlib-3ee14d6850d46d9c0342d8b44d66110e8f2be3b6.tar.bz2
* dumper.cc (dumper::init_core_dump): Set architecture field in dump
header.
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/dumper.cc6
2 files changed, 11 insertions, 0 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 600b0fb..c48e2da 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-19 Egor Duda <deo@logos-m.ru>
+
+ * dumper.cc (dumper::init_core_dump): Set architecture field in dump
+ header.
+
Mon Apr 16 15:08:00 2001 Corinna Vinschen <vinschen@redhat.com>
* mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc
index db4e16d..9f8257b 100644
--- a/winsup/utils/dumper.cc
+++ b/winsup/utils/dumper.cc
@@ -593,6 +593,12 @@ dumper::init_core_dump ()
goto failed;
}
+ if (!bfd_set_arch_mach (core_bfd, bfd_arch_i386, 0))
+ {
+ bfd_perror ("setting bfd architecture");
+ goto failed;
+ }
+
return 1;
failed: