[PATCH] gdb/testsuite: add "macros" option to gdb_compile
Simon Marchi
simon.marchi@polymtl.ca
Thu Apr 7 01:53:10 GMT 2022
On 2022-04-06 11:44, Simon Marchi via Gdb-patches wrote:
> From: Simon Marchi <simon.marchi@efficios.com>
>
> Make gdb_compile handle a new "macros" option, which makes it pass the
> appropriate flag to make the compiler include macro information in the
> debug info. This will help simplify tests using macros, reduce
> redundant code, and make it easier to add support for a new compiler.
>
> Right now it only handles clang specially (using -fdebug-macro) and
> falls back to -g3 otherwise (which works for gcc). Other compilers can
> be added as needed.
>
> Change-Id: I50cd6ab1bfbb478c1005486408e214b551364c9b
I integrated this patch in the following series:
https://sourceware.org/pipermail/gdb-patches/2022-April/187550.html
Simon
More information about the Gdb-patches
mailing list