From: Simon Marchi <simark@simark.ca>
To: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/testsuite] Handle multiple sources in build_executable_from_fission_assembler
Date: Tue, 10 Nov 2020 14:12:39 -0500 [thread overview]
Message-ID: <89cb556b-17a8-de3e-8f57-1488099751b9@simark.ca> (raw)
In-Reply-To: <20201105164005.GA26356@delia>
On 2020-11-05 11:40 a.m., Tom de Vries wrote:
> diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
> index 7bb745c71d..c18130b74d 100644
> --- a/gdb/testsuite/lib/dwarf.exp
> +++ b/gdb/testsuite/lib/dwarf.exp
> @@ -29,27 +29,20 @@ proc dwarf2_support {} {
> return 0
> }
>
> -# Build an executable from a fission-based .S file.
> +# Build an object from a fission-based .S file SOURCE.
SOURCE_FILE
> @@ -78,7 +71,35 @@ proc build_executable_from_fission_assembler { testname executable sources optio
> return -1
> }
>
> - set result [gdb_compile $object_file $executable executable $options]
> + return $object_file
> +}
> +
> +# Build an executable from fission-based .S files FISSION_SOURCES, and regular
> +# SOURCES. The arguments and results are the same as for build_executable.
> +
> +# Current restrictions:
> +# - cannot be run on remote hosts
> +
> +proc build_executable_from_fission_assembler { testname executable fission_sources sources options } {
> + verbose -log "build_executable_from_fission_assembler $testname $executable $fission_sources $sources $options"
> + if [is_remote host] {
> + error "Remote hosts are not supported."
> + }
> +
> + global srcdir subdir
> +
> + set l [list]
Naming this variable "objects" would be a bit more expressive.
No other comments, thanks.
Simon
prev parent reply other threads:[~2020-11-10 19:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 16:40 Tom de Vries
2020-11-10 19:12 ` Simon Marchi [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=89cb556b-17a8-de3e-8f57-1488099751b9@simark.ca \
--to=simark@simark.ca \
--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