Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: simon.marchi@polymtl.ca
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@polymtl.ca>
Subject: [PATCH 0/7] gdb/testsuite: allow passing inferior arguments with native-gdbserver board
Date: Wed,  6 May 2026 16:27:48 -0400	[thread overview]
Message-ID: <20260506202804.1681886-1-simon.marchi@polymtl.ca> (raw)

From: Simon Marchi <simon.marchi@polymtl.ca>

I started looking into this while revieweing this patch from Baris [1].
The problem was that a set was attempting to pass args to the inferior
using "set args", which does not work with the native-gdbserver board.
I tried to implement proper support for passing arguments to inferior
programs in the testsuite, and this series is the result.

[1] https://inbox.sourceware.org/20260424141955.4083734-1-tankut.baris.aktemur%40intel.com

Simon Marchi (7):
  gdb/testsuite: remove unused arguments to gdb_breakpoint
  gdb/testsuite: make gdb_breakpoint, runto and runto_main use
    parse_args
  gdb/testsuite: add -inferior-args option to runto
  gdb/testsuite: fix step-over-thread-exit.exp with native-gdbserver
  gdb/testsuite: make pie-execl.exp work with native-gdbserver
  gdb/testsuite: use -inferior-args in
    gdb.base/gcore-buffer-overflow.exp
  gdb/testsuite: fix gdb.rocm/code-object-load-while-breakpoint-hit.exp
    with native-gdbserver

 gdb/testsuite/gdb.ada/break-label.exp         |  2 +-
 gdb/testsuite/gdb.ada/finish-var-size.exp     |  2 +-
 gdb/testsuite/gdb.ada/import.exp              |  6 +-
 gdb/testsuite/gdb.ada/length_cond.exp         |  2 +-
 gdb/testsuite/gdb.ada/non-ascii-utf-8.exp     | 14 ++--
 .../gdb.arch/aarch64-atomic-inst.exp          |  4 +-
 .../gdb.arch/aarch64-pseudo-unwind.exp        |  4 +-
 .../gdb.arch/amd64-pseudo-unwind.exp          |  4 +-
 .../gdb.arch/arc-analyze-prologue.exp         |  6 +-
 .../gdb.arch/arm-pseudo-unwind-legacy.exp     |  4 +-
 gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp  |  4 +-
 gdb/testsuite/gdb.arch/powerpc-htm-regs.exp   |  4 +-
 gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp  |  6 +-
 .../gdb.arch/ppc64-isa207-atomic-inst.exp     | 12 +--
 gdb/testsuite/gdb.base/annotate-symlink.exp   |  2 +-
 gdb/testsuite/gdb.base/attach.exp             |  2 +-
 gdb/testsuite/gdb.base/break-inline.exp       |  2 +-
 gdb/testsuite/gdb.base/break-interp.exp       |  2 +-
 .../gdb.base/condbreak-multi-context.exp      | 14 ++--
 gdb/testsuite/gdb.base/dlmopen-ns-ids.exp     |  2 +-
 gdb/testsuite/gdb.base/dlmopen.exp            |  2 +-
 gdb/testsuite/gdb.base/eh_return.exp          |  2 +-
 gdb/testsuite/gdb.base/foll-exec-mode.exp     |  2 +-
 gdb/testsuite/gdb.base/foll-vfork.exp         |  2 +-
 .../fork-no-detach-follow-child-dlopen.exp    |  2 +-
 gdb/testsuite/gdb.base/fullname.exp           | 12 +--
 .../gdb.base/gcore-buffer-overflow.exp        |  5 +-
 gdb/testsuite/gdb.base/gcore-memory-usage.exp |  2 +-
 gdb/testsuite/gdb.base/gdb-sigterm.exp        |  2 +-
 gdb/testsuite/gdb.base/gdb1250.exp            |  2 +-
 gdb/testsuite/gdb.base/infcall-failure-2.exp  |  2 +-
 .../gdb.base/infcall-nested-structs.exp.tcl   |  2 +-
 gdb/testsuite/gdb.base/inferior-args.exp      |  6 +-
 gdb/testsuite/gdb.base/info-shared.exp        |  4 +-
 gdb/testsuite/gdb.base/jit-reader.exp         |  2 +-
 gdb/testsuite/gdb.base/nostdlib.exp           |  2 +-
 gdb/testsuite/gdb.base/pie-execl.exp          | 14 +---
 gdb/testsuite/gdb.base/prologue.exp           |  2 +-
 .../gdb.base/run-attach-while-running.exp     |  2 +-
 gdb/testsuite/gdb.base/shlib-call.exp         |  2 +-
 .../gdb.base/solib-bad-entry-addr.exp         |  2 +-
 gdb/testsuite/gdb.base/solib-vanish.exp       |  2 +-
 gdb/testsuite/gdb.base/stale-infcall.exp      |  2 +-
 gdb/testsuite/gdb.base/sym-file.exp           |  2 +-
 gdb/testsuite/gdb.base/symlink-sourcefile.exp |  2 +-
 gdb/testsuite/gdb.base/tls-dlobj.exp          | 22 ++---
 gdb/testsuite/gdb.base/unload.exp             |  8 +-
 gdb/testsuite/gdb.base/valgrind-disp-step.exp |  2 +-
 .../gdb.base/watchpoint-unaligned.exp         |  5 +-
 gdb/testsuite/gdb.btrace/rn-dl-bind.exp       |  2 +-
 gdb/testsuite/gdb.cp/anon-ns.exp              |  4 +-
 .../gdb.cp/breakpoint-shlib-func.exp          |  2 +-
 gdb/testsuite/gdb.cp/meth-typedefs.exp        |  4 +-
 gdb/testsuite/gdb.cp/nextoverthrow.exp        |  2 +-
 gdb/testsuite/gdb.cp/paramless.exp            |  2 +-
 gdb/testsuite/gdb.cp/save-bp-qualified.exp    |  2 +-
 gdb/testsuite/gdb.cp/step-and-next-inline.exp |  2 +-
 gdb/testsuite/gdb.cp/subtypes.exp             |  6 +-
 gdb/testsuite/gdb.cp/templates.exp            | 16 ++--
 .../gdb.debuginfod/fetch_src_and_symbols.exp  |  2 +-
 gdb/testsuite/gdb.dwarf2/ada-cold-name.exp    |  4 +-
 gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp |  8 +-
 .../gdb.dwarf2/break-inline-psymtab.exp       |  2 +-
 .../gdb.dwarf2/dw2-main-no-line-number.exp    |  2 +-
 .../gdb.dwarf2/dw2-vendor-extended-opcode.exp |  2 +-
 .../inlined_subroutine-inheritance.exp        |  2 +-
 .../locexpr-data-member-location.exp          |  4 +-
 gdb/testsuite/gdb.dwarf2/struct-decl.exp      |  2 +-
 gdb/testsuite/gdb.gdb/python-helper.exp       |  4 +-
 gdb/testsuite/gdb.go/methods.exp              |  4 +-
 gdb/testsuite/gdb.go/no-package.exp           |  2 +-
 gdb/testsuite/gdb.linespec/explicit.exp       |  4 +-
 gdb/testsuite/gdb.linespec/keywords.exp       | 12 +--
 gdb/testsuite/gdb.linespec/thread.exp         |  2 +-
 .../gdb.multi/inferior-specific-bp.exp        |  2 +-
 gdb/testsuite/gdb.multi/multi-kill.exp        |  2 +-
 .../gdb.multi/pending-bp-del-inferior.exp     |  2 +-
 gdb/testsuite/gdb.multi/pending-bp.exp        | 16 ++--
 gdb/testsuite/gdb.multi/watchpoint-multi.exp  |  4 +-
 gdb/testsuite/gdb.opt/inline-break.exp        |  4 +-
 gdb/testsuite/gdb.python/py-breakpoint.exp    |  2 +-
 gdb/testsuite/gdb.python/py-events.exp        |  2 +-
 .../gdb.python/py-finish-breakpoint.exp       |  2 +-
 .../gdb.reverse/finish-reverse-next.exp       | 10 +--
 .../gdb.reverse/func-map-to-same-line.exp     |  4 +-
 .../gdb.reverse/i386-avx-reverse.exp          |  4 +-
 .../code-object-load-while-breakpoint-hit.exp |  3 +-
 .../gdb.rocm/fork-exec-gpu-to-non-gpu.exp     |  4 +-
 .../gdb.rocm/fork-exec-non-gpu-to-gpu.exp     |  4 +-
 gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp |  2 +-
 .../precise-memory-warning-watchpoint.exp     |  2 +-
 gdb/testsuite/gdb.rocm/precise-memory.exp     |  2 +-
 .../gdb.rocm/watchpoint-at-end-of-shader.exp  |  2 +-
 gdb/testsuite/gdb.rocm/watchpoint-basic.exp   |  2 +-
 gdb/testsuite/gdb.rust/modules.exp            |  4 +-
 .../gdb.threads/del-pending-thread-bp.exp     |  2 +-
 .../gdb.threads/fork-thread-pending.exp       |  2 +-
 .../gdb.threads/multiple-step-overs.exp       |  2 +-
 .../process-dies-while-detaching.exp          |  4 +-
 .../gdb.threads/step-over-thread-exit.c       | 15 ++--
 .../gdb.threads/step-over-thread-exit.exp     |  8 +-
 .../gdb.threads/thread-bp-deleted.exp         |  3 +-
 gdb/testsuite/gdb.trace/actions-changed.exp   |  2 +-
 gdb/testsuite/gdb.trace/backtrace.exp         |  2 +-
 gdb/testsuite/gdb.trace/circ.exp              |  4 +-
 gdb/testsuite/gdb.trace/collection.exp        |  4 +-
 .../gdb.trace/disconnected-tracing.exp        |  4 +-
 gdb/testsuite/gdb.trace/ftrace-lock.exp       |  4 +-
 gdb/testsuite/gdb.trace/ftrace.exp            |  4 +-
 gdb/testsuite/gdb.trace/infotrace.exp         |  2 +-
 gdb/testsuite/gdb.trace/packetlen.exp         |  2 +-
 gdb/testsuite/gdb.trace/passc-dyn.exp         |  2 +-
 gdb/testsuite/gdb.trace/qtro.exp              |  2 +-
 gdb/testsuite/gdb.trace/read-memory.exp       |  2 +-
 gdb/testsuite/gdb.trace/report.exp            |  2 +-
 gdb/testsuite/gdb.trace/signal.exp            |  6 +-
 gdb/testsuite/gdb.trace/status-stop.exp       |  4 +-
 gdb/testsuite/gdb.trace/strace.exp            |  6 +-
 gdb/testsuite/gdb.trace/tfind.exp             |  2 +-
 gdb/testsuite/gdb.trace/trace-break.exp       | 26 +++---
 gdb/testsuite/gdb.trace/trace-condition.exp   |  4 +-
 gdb/testsuite/gdb.trace/trace-mt.exp          |  2 +-
 gdb/testsuite/gdb.trace/tstatus.exp           |  4 +-
 gdb/testsuite/gdb.trace/tsv.exp               |  2 +-
 .../gdb.trace/unavailable-dwarf-piece.exp     |  2 +-
 gdb/testsuite/gdb.trace/unavailable.exp       |  4 +-
 gdb/testsuite/gdb.trace/while-dyn.exp         |  2 +-
 gdb/testsuite/lib/gdb.exp                     | 80 +++++++++++++------
 gdb/testsuite/lib/selftest-support.exp        |  2 +-
 129 files changed, 310 insertions(+), 301 deletions(-)


base-commit: 9e6e0c3cd9e6d5ee4953f72a805cff5f150aa2fd
-- 
2.54.0


             reply	other threads:[~2026-05-06 20:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-06 20:27 simon.marchi [this message]
2026-05-06 20:27 ` [PATCH 1/7] gdb/testsuite: remove unused arguments to gdb_breakpoint simon.marchi
2026-05-06 20:27 ` [PATCH 2/7] gdb/testsuite: make gdb_breakpoint, runto and runto_main use parse_args simon.marchi
2026-05-06 20:27 ` [PATCH 3/7] gdb/testsuite: add -inferior-args option to runto simon.marchi
2026-05-12 13:02   ` Aktemur, Baris
2026-06-19 19:29     ` Simon Marchi
2026-06-19 19:54       ` Simon Marchi
2026-05-06 20:27 ` [PATCH 4/7] gdb/testsuite: fix step-over-thread-exit.exp with native-gdbserver simon.marchi
2026-05-12 13:06   ` Aktemur, Baris
2026-06-19 19:31     ` Simon Marchi
2026-05-06 20:27 ` [PATCH 5/7] gdb/testsuite: make pie-execl.exp work " simon.marchi
2026-05-06 20:27 ` [PATCH 6/7] gdb/testsuite: use -inferior-args in gdb.base/gcore-buffer-overflow.exp simon.marchi
2026-05-06 20:27 ` [PATCH 7/7] gdb/testsuite: fix gdb.rocm/code-object-load-while-breakpoint-hit.exp with native-gdbserver simon.marchi
2026-05-12 13:18 ` [PATCH 0/7] gdb/testsuite: allow passing inferior arguments with native-gdbserver board Aktemur, Baris
2026-06-15  9:54   ` Aktemur, Baris
2026-06-19 20:09     ` Simon Marchi

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=20260506202804.1681886-1-simon.marchi@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb-patches@sourceware.org \
    /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