From: Tom Tromey <tom@tromey.com>
To: Tom de Vries <tdevries@suse.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/testsuite] Fix gdb.go/methods.exp
Date: Fri, 21 Feb 2020 14:54:00 -0000 [thread overview]
Message-ID: <877e0ggfe8.fsf@tromey.com> (raw)
In-Reply-To: <20200221110152.GA30305@delia> (Tom de Vries's message of "Fri, 21 Feb 2020 12:01:54 +0100")
>>>>> "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
next prev parent reply other threads:[~2020-02-21 14:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-21 11:02 Tom de Vries
2020-02-21 14:54 ` Tom Tromey [this message]
2020-02-21 16:17 ` Tom de Vries
2020-02-21 18:36 ` Tom Tromey
2020-02-25 7:23 ` Tom de Vries
2020-02-25 7:24 ` Tom de Vries
2020-02-25 13:07 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877e0ggfe8.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox