From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simon.marchi@polymtl.ca>, gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/testsuite] Add have_mpx in lib/gdb.exp
Date: Tue, 12 Jan 2021 17:39:09 +0100 [thread overview]
Message-ID: <5786ed3d-1317-0b4f-9a86-c57974431705@suse.de> (raw)
In-Reply-To: <678bd91e-5b59-657c-a544-cfe7ce682eff@polymtl.ca>
On 1/12/21 4:35 PM, Simon Marchi wrote:
> On 2021-01-12 5:59 a.m., Tom de Vries wrote:
>> + set compile_flags "incdir=${srcdir}/.."
>> + if {![gdb_simple_compile $me $src executable $compile_flags]} {
>> + return 0
>> + }
>> +
>> + set result [remote_exec target $obj]
>> + set status [lindex $result 0]
>> + set output [lindex $result 1]
>> + if { $output != "" } {
>> + return 0
>> + }
>> +
>> + remote_file build delete $obj
>
>
> Should we delete the obj file in the `if { $output != "" }`?
>
Yes, thanks for catching that. Fixed and committed.
> When is that path taken?
>
When the executable produces some output, which it shouldn't.
Thanks,
- Tom
> Otherwise, that LGTM.
>
> Simon
>
prev parent reply other threads:[~2021-01-12 16:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-12 10:59 Tom de Vries
2021-01-12 15:35 ` Simon Marchi via Gdb-patches
2021-01-12 16:39 ` Tom de Vries [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=5786ed3d-1317-0b4f-9a86-c57974431705@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/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