From 3ee14d6850d46d9c0342d8b44d66110e8f2be3b6 Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Thu, 19 Apr 2001 14:22:30 +0000 Subject: * dumper.cc (dumper::init_core_dump): Set architecture field in dump header. --- winsup/utils/ChangeLog | 5 +++++ winsup/utils/dumper.cc | 6 ++++++ 2 files changed, 11 insertions(+) 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 + + * dumper.cc (dumper::init_core_dump): Set architecture field in dump + header. + Mon Apr 16 15:08:00 2001 Corinna Vinschen * 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: -- cgit v1.1