diff options
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/dumper.cc | 6 |
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: |