[PATCH 2/2] gdb: Allow prologue detection via symbols for Intel compilers.

Willgerodt, Felix felix.willgerodt@intel.com
Fri Apr 16 11:07:24 GMT 2021


>Felix> The next-gen Intel Fortran compiler isn't flang-based, but emits 
>Felix> prologue_end in the same manner.  As do the newer Intel C/C++ compilers.
>Felix> This allows prologue detection based on dwarf for all newer Intel compilers.
>Felix> The cut-off version was not chosen for any specific reason other 
>Felix> than the effort to test this.
>
>It would be nice someday if we could switch this code to assume a good compiler and only sniff for ones that don't emit prologues >properly.
>
>Tom

I totally agree! The current state has been there far too long: https://sourceware.org/legacy-ml/gdb-patches/2012-11/msg00718.html
If we would use a list of bad compilers instead - creating compiler tickets for those that we add - we would probably increase the motivation to fix things on the compiler side. It would also improve debugging of optimized code in some cases. That is just my two cents, I didn't want to challenge the status quo with this patch or promise to work on that.

Felix
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


More information about the Gdb-patches mailing list