Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] [gdb/testsuite] Use try instead of catch
@ 2026-09-25 14:01 Tom de Vries
  2026-09-25 14:01 ` [PATCH 1/2] [gdb/testsuite] Simplify core_find Tom de Vries
  2026-09-25 14:01 ` [PATCH 2/2] [gdb/testsuite] Use try instead of catch Tom de Vries
  0 siblings, 2 replies; 3+ messages in thread
From: Tom de Vries @ 2026-09-25 14:01 UTC (permalink / raw)
  To: gdb-patches

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.

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                     | 252 +++++++++++-------
 2 files changed, 168 insertions(+), 97 deletions(-)


base-commit: e2c601b41e81c53e437d8fff45f116f13590ef43
-- 
2.51.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-25 14:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 14:01 [PATCH 0/2] [gdb/testsuite] Use try instead of catch Tom de Vries
2026-09-25 14:01 ` [PATCH 1/2] [gdb/testsuite] Simplify core_find Tom de Vries
2026-09-25 14:01 ` [PATCH 2/2] [gdb/testsuite] Use try instead of catch Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox