diff options
author | Felix Willgerodt <felix.willgerodt@intel.com> | 2021-04-08 09:16:15 +0200 |
---|---|---|
committer | Felix Willgerodt <felix.willgerodt@intel.com> | 2021-04-08 09:19:57 +0200 |
commit | 16e311ab6d4d379da18ad03bc5373f621f488f41 (patch) | |
tree | afa98eda1ca8835ff0f8181b360777be8fab8451 /gdb/producer.h | |
parent | fbb3bcfcd8810ecf25a47e71c2f7d46d7a74a6be (diff) | |
download | gdb-16e311ab6d4d379da18ad03bc5373f621f488f41.zip gdb-16e311ab6d4d379da18ad03bc5373f621f488f41.tar.gz gdb-16e311ab6d4d379da18ad03bc5373f621f488f41.tar.bz2 |
gdb: Allow prologue detection via symbols for Intel compilers.
The next-gen Intel Fortran compiler isn't flang-based, but emits
prologue_end in the same manner. As do the newer Intel C/C++ compilers.
This allows prologue detection based on dwarf for all newer Intel compilers.
The cut-off version was not chosen for any specific reason other than the
effort to test this.
gdb/Changelog:
2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
* i386-tdep.c (i386_skip_prologue): Use symbol table to find the
prologue end for Intel compilers.
* amd64-tdep.c (amd64_skip_prologue): Likewise.
* producer.c (producer_is_icc_ge_19): New function.
* producer.h (producer_is_icc_ge_19): New declaration.
Diffstat (limited to 'gdb/producer.h')
-rw-r--r-- | gdb/producer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/producer.h b/gdb/producer.h index 9cfccd6..d08062e 100644 --- a/gdb/producer.h +++ b/gdb/producer.h @@ -30,6 +30,9 @@ extern int producer_is_gcc_ge_4 (const char *producer); is NULL or it isn't GCC. */ extern int producer_is_gcc (const char *producer, int *major, int *minor); +/* Check for Intel compilers >= 19.0. */ +extern bool producer_is_icc_ge_19 (const char *producer); + /* Returns true if the given PRODUCER string is Intel or false otherwise. Sets the MAJOR and MINOR versions when not NULL. */ extern bool producer_is_icc (const char *producer, int *major, int *minor); |