This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][gdb/testsuite] Fix gdb.go/methods.exp


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]