aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-netbsd-nat.c
diff options
context:
space:
mode:
authorNils-Christian Kempke <nils-christian.kempke@intel.com>2022-05-31 16:43:44 +0200
committerNils-Christian Kempke <nils-christian.kempke@intel.com>2022-05-31 16:44:55 +0200
commit5c8ff7f6d9240026ef7d87e3efae5b127fdba365 (patch)
treec73799d4ae946e568726316e2492826cb6d66c7c /gdb/sh-netbsd-nat.c
parent4212a8c90777ba7c5fdc09d4022a1fb353851b4f (diff)
downloadgdb-5c8ff7f6d9240026ef7d87e3efae5b127fdba365.zip
gdb-5c8ff7f6d9240026ef7d87e3efae5b127fdba365.tar.gz
gdb-5c8ff7f6d9240026ef7d87e3efae5b127fdba365.tar.bz2
testsuite/lib: add check_optional_entry for GDBInfoSymbols
There was already a similar functionality for the GDBInfoModuleSymbols. This just extends the GDBInfoSymbols. We will use this feature in a later commit to make a testcase less GNU specific and more flexible for other compilers. Namely, in gdb.fortran/info-types.exp currenlty GDBInfoSymbols::check_entry is used to verify and test the output of the info symbols command. The test, however was written with gfortran as a basis and some of the tests are not fair with e.g. ifx and ifort as they test for symbols that are not actually required to be emitted. The lines GDBInfoSymbols::check_entry "${srcfile}" "" "${character1}" and GDBInfoSymbols::check_entry "${srcfile}" "37" "Type s1;" check for types that are either not used in the source file (character1) or should not be emitted by the compiler at global scope (s1) thus no appearing in the info symbols command. In order to fix this we will later use the newly introduced check_optional_entry over check_entry.
Diffstat (limited to 'gdb/sh-netbsd-nat.c')
0 files changed, 0 insertions, 0 deletions