From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH v2 0/2] [gdb/testsuite] Use try instead of catch
Date: Sun, 27 Sep 2026 07:42:52 +0200 [thread overview]
Message-ID: <20260927054254.1986148-1-tdevries@suse.de> (raw)
This series contains two patches.
The second refactors exception handling in lib/gdb.exp to use try instead of
catch more often.
The first addresses an issue I found while attempting to use try in proc
core_find. The patch simplifies core_find, as well as test-case
gdb.base/corefile-exec-context.exp.
Tested on x86_64-linux and aarch64-linux.
Changed in v2:
- fix ENOENT in dwz_version found by the Linaro CI, by ignoring all errors
Versions:
- v1 https://sourceware.org/pipermail/gdb-patches/2026-September/230641.html
Tom de Vries (2):
[gdb/testsuite] Simplify core_find
[gdb/testsuite] Use try instead of catch
.../gdb.base/corefile-exec-context.exp | 13 +-
gdb/testsuite/lib/gdb.exp | 265 +++++++++++-------
2 files changed, 176 insertions(+), 102 deletions(-)
base-commit: 196286d25ccc652dc086ae173d1cfa836bed0618
--
2.51.0
next reply other threads:[~2026-09-27 5:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-27 5:42 Tom de Vries [this message]
2026-09-27 5:42 ` [PATCH v2 1/2] [gdb/testsuite] Simplify core_find Tom de Vries
2026-09-27 5:42 ` [PATCH v2 2/2] [gdb/testsuite] Use try instead of catch Tom de Vries
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=20260927054254.1986148-1-tdevries@suse.de \
--to=tdevries@suse.de \
--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