aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-netbsd-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-04-06 21:51:57 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-07 14:41:28 -0400
commit9be5d742dbe3d23f740bbeb5bd1337da8ece536e (patch)
tree4b87a6e848daac7225d457c1b299e44303c040f7 /gdb/sparc64-netbsd-tdep.c
parent4f7df13ee75be36ae5c6046b6d6f60e04498b719 (diff)
downloadgdb-9be5d742dbe3d23f740bbeb5bd1337da8ece536e.zip
gdb-9be5d742dbe3d23f740bbeb5bd1337da8ece536e.tar.gz
gdb-9be5d742dbe3d23f740bbeb5bd1337da8ece536e.tar.bz2
gdb/testsuite: add "macros" option to gdb_compile
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. There are some tests that are currently skipped if the compiler is nor gcc nor clang. After this patch, the tests will attempt to run (the -g3 fall back will be used). That gives a chance to people using other compilers to notice something is wrong and maybe add support for their compiler. If it is needed to support a compiler that doesn't have a way to include macro information, then we can always introduce a "skip_macro_tests" that can be used to skip over them. Change-Id: I50cd6ab1bfbb478c1005486408e214b551364c9b
Diffstat (limited to 'gdb/sparc64-netbsd-tdep.c')
0 files changed, 0 insertions, 0 deletions