public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>,
	gdb-patches@sourceware.org
Subject: Re: [PATCH 3/3] gdb/testsuite: fix minor things in jit tests
Date: Sun, 14 Jun 2020 14:09:47 -0400	[thread overview]
Message-ID: <763ff5ab-8f7e-b8db-75ef-e363109a0887@simark.ca> (raw)
In-Reply-To: <5260086312a9ec7d276a432ca88126924e0f2b5d.1590397723.git.tankut.baris.aktemur@intel.com>

On 2020-05-25 5:38 a.m., Tankut Baris Aktemur via Gdb-patches wrote:
> gdb/testsuite/ChangeLog:
> 2020-05-25  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
> 
> 	* gdb.base/jit-elf-so.exp: Refer to the global main_loader_basename
> 	variable.
> 	* gdb.base/jit-reader-simple.exp: Fix typo ("Built" -> "Build"),
> 	and use the already-defined 'options' variable.
> ---
>  gdb/testsuite/gdb.base/jit-elf-so.exp        | 2 +-
>  gdb/testsuite/gdb.base/jit-reader-simple.exp | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/gdb/testsuite/gdb.base/jit-elf-so.exp b/gdb/testsuite/gdb.base/jit-elf-so.exp
> index 51c1d33ff9b..091fe5df812 100644
> --- a/gdb/testsuite/gdb.base/jit-elf-so.exp
> +++ b/gdb/testsuite/gdb.base/jit-elf-so.exp
> @@ -50,7 +50,7 @@ set jit_solib_srcfile ${srcdir}/${subdir}/${jit_solib_basename}.c
>  # On success, return 0.
>  # On failure, return -1.
>  proc compile_jit_dlmain {options} {
> -    global main_loader_srcfile main_loader_binfile
> +    global main_loader_srcfile main_loader_binfile main_loader_basename
>      set options [concat $options debug]
>  
>      if { [gdb_compile ${main_loader_srcfile} ${main_loader_binfile} \
> diff --git a/gdb/testsuite/gdb.base/jit-reader-simple.exp b/gdb/testsuite/gdb.base/jit-reader-simple.exp
> index 930c59c0124..d8a54a37ce7 100644
> --- a/gdb/testsuite/gdb.base/jit-reader-simple.exp
> +++ b/gdb/testsuite/gdb.base/jit-reader-simple.exp
> @@ -77,12 +77,12 @@ if {[build_shared_jit] == -1} {
>      return
>  }
>  
> -# Built the program that loads the JIT library.
> +# Build the program that loads the JIT library.
>  set srcfile_dl $testfile-dl.c
>  set binfile_dl $binfile-dl
>  set options [list debug shlib=${binfile_lib}]
>  if {[gdb_compile ${srcdir}/${subdir}/${srcfile_dl} $binfile_dl executable \
> -	 [list debug shlib=$binfile_lib]] == -1 } {
> +	 $options] == -1 } {
>      untested "failed to compile"
>      return -1
>  }
> -- 
> 2.17.1
> 

This LGTM, and it seems it could be pushed on its own?

Simon

  reply	other threads:[~2020-06-14 18:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25  9:38 [PATCH 0/3] Handling multiple JITers Tankut Baris Aktemur
2020-05-25  9:38 ` [PATCH 1/3] gdb/jit: use a map to store objfile and jit breakpoint info Tankut Baris Aktemur
2020-06-14 17:50   ` Simon Marchi
2020-06-16  9:47     ` Aktemur, Tankut Baris
2020-05-25  9:38 ` [PATCH 2/3] gdb/jit: enable tracking multiple jitter objfiles Tankut Baris Aktemur
2020-06-14 17:09   ` Simon Marchi
2020-06-16  9:48     ` Aktemur, Tankut Baris
2020-05-25  9:38 ` [PATCH 3/3] gdb/testsuite: fix minor things in jit tests Tankut Baris Aktemur
2020-06-14 18:09   ` Simon Marchi [this message]
2020-06-15  7:15     ` Aktemur, Tankut Baris
2020-06-12 11:12 ` [PATCH 0/3] Handling multiple JITers Aktemur, Tankut Baris

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=763ff5ab-8f7e-b8db-75ef-e363109a0887@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=tankut.baris.aktemur@intel.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).