diff options
author | Nick Clifton <nickc@redhat.com> | 2021-05-07 15:24:14 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-05-07 15:24:14 +0100 |
commit | 3ecc00ec9cbb7a35d6e58bf86fddaa33126a479a (patch) | |
tree | 2f20cb557ae18c2657600144de099e7648b4cd06 | |
parent | c759c777c98fab555d28d133ef0793607f8c3afc (diff) | |
download | gdb-3ecc00ec9cbb7a35d6e58bf86fddaa33126a479a.zip gdb-3ecc00ec9cbb7a35d6e58bf86fddaa33126a479a.tar.gz gdb-3ecc00ec9cbb7a35d6e58bf86fddaa33126a479a.tar.bz2 |
Srop readelf's unwind decoder from complaining about x86 binaries.
* readelf.c (no_processor_specific_unwind): New function.
(process_unwind): Use no_processor_specific_unwind for X86
targets.
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/readelf.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 72f6973..3f210a5 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2021-05-07 Nick Clifton <nickc@redhat.com> + + * readelf.c (no_processor_specific_unwind): New function. + (process_unwind): Use no_processor_specific_unwind for X86 + targets. + 2021-05-07 Michael Forney <mforney@mforney.org> * dwarf.c: Don't omit second operand of '?' operator. diff --git a/binutils/readelf.c b/binutils/readelf.c index e63deaf..cf20117 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -9831,6 +9831,13 @@ arm_process_unwind (Filedata * filedata) } static bool +no_processor_specific_unwind (Filedata * filedata ATTRIBUTE_UNUSED) +{ + printf (_("No processor specific unwind information to decode\n")); + return true; +} + +static bool process_unwind (Filedata * filedata) { struct unwind_handler @@ -9843,6 +9850,8 @@ process_unwind (Filedata * filedata) { EM_IA_64, ia64_process_unwind }, { EM_PARISC, hppa_process_unwind }, { EM_TI_C6000, arm_process_unwind }, + { EM_386, no_processor_specific_unwind }, + { EM_X86_64, no_processor_specific_unwind }, { 0, NULL } }; int i; |