From: Pedro Alves <palves@redhat.com>
To: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [committed][gdb/testsuite] Split up multi-exec test-cases
Date: Mon, 18 May 2020 15:13:44 +0100 [thread overview]
Message-ID: <58835fcd-a7b6-aa0a-4155-7aab4a0e6fd0@redhat.com> (raw)
In-Reply-To: <456ce125-df9d-6ca7-d08d-9dae83aaed10@redhat.com>
On 5/14/20 6:04 PM, Pedro Alves via Gdb-patches wrote:
> On 5/14/20 4:25 PM, Tom de Vries wrote:
> No objection to the splitting, but the issue above should really be
> fixed. It's a systematic issue, and requiring a file split to address it
> seems like a heavy burden to me. Maybe we should disable exec-file-mismatch
> detection from within gdb_target_cmd? At least, until we have buildid detection.
> But that won't work on all hosts, either. Like, this fixes align.exp for me:
>
> diff --git c/gdb/testsuite/lib/gdbserver-support.exp w/gdb/testsuite/lib/gdbserver-support.exp
> index a2cc80f28d7..fc79f1d60c6 100644
> --- c/gdb/testsuite/lib/gdbserver-support.exp
> +++ w/gdb/testsuite/lib/gdbserver-support.exp
> @@ -52,7 +52,7 @@ proc gdb_target_cmd_ext { targetname serialport {additional_text ""} } {
>
> set serialport_re [string_to_regexp $serialport]
> for {set i 1} {$i <= 3} {incr i} {
> - send_gdb "target $targetname $serialport\n"
> + send_gdb "with exec-file-mismatch off -- target $targetname $serialport\n"
> gdb_expect 60 {
> -re "A program is being debugged already.*ill it.*y or n. $" {
> send_gdb "y\n"
To sort of close the loop here -- I no longer think that this a good approach.
The exec-file-mismatch detection did actually find a bug in the testsuite:
https://sourceware.org/pipermail/gdb-patches/2020-May/168680.html
I'm now aiming at fixing this in GDB, by making GDB validate the exec
file by comparing build IDs instead of filenames:
https://sourceware.org/pipermail/gdb-patches/2020-May/168718.html
Thanks,
Pedro Alves
prev parent reply other threads:[~2020-05-18 14:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 15:25 Tom de Vries
2020-05-14 15:32 ` Tom Tromey
2020-05-14 16:28 ` Tom de Vries
2020-05-14 17:14 ` Pedro Alves
2020-05-15 12:51 ` [committed][gdb/testsuite] Rename *.exp.in to *.exp.tcl Tom de Vries
2020-05-14 17:04 ` [committed][gdb/testsuite] Split up multi-exec test-cases Pedro Alves
2020-05-15 14:27 ` Tom de Vries
2020-05-18 14:13 ` Pedro Alves [this message]
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=58835fcd-a7b6-aa0a-4155-7aab4a0e6fd0@redhat.com \
--to=palves@redhat.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