[PATCH][gdb/testsuite] Fix gdb.go/methods.exp
Tom Tromey
tom@tromey.com
Fri Feb 21 14:54:00 GMT 2020
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> +if { [exec_contains_debug_info_string $binfile \
Tom> + "DW_AT_name.*: main.Foo.N6_main.T"] } {
Is there a way to get this information from gdb itself?
Tom> +proc exec_contains_debug_info_string { executable re } {
Tom> + set readelf_program [gdb_find_readelf]
Tom> + set res [catch {exec $readelf_program -wi $executable \
Tom> + | grep -E "$re" }]
If not you should probably find a way to do this with objdump; unless
these tests are already ELF-only for some reason.
Tom
More information about the Gdb-patches
mailing list