diff options
author | Egor Duda <deo@logos-m.ru> | 2001-04-19 18:22:30 +0400 |
---|---|---|
committer | Egor Duda <deo@logos-m.ru> | 2001-04-19 18:22:30 +0400 |
commit | 3ee14d6850d46d9c0342d8b44d66110e8f2be3b6 (patch) | |
tree | 15f87cfa3e310c23991051e04b088201cd9fde24 /winsup/utils | |
parent | e8cec9646ed21bffa7edfb5709ed7b0327884036 (diff) |
* dumper.cc (dumper::init_core_dump): Set architecture field in dump
header.
Diffstat (limited to 'winsup/utils')
-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 600b0fb4f..c48e2daa8 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 db4e16deb..9f8257b98 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: |