]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add tests for per-inferior settings
authorSébastien Darche <sdarche@efficios.com>
Mon, 29 Sep 2025 15:01:03 +0000 (11:01 -0400)
committerSébastien Darche <sdarche@efficios.com>
Wed, 8 Oct 2025 20:00:33 +0000 (16:00 -0400)
commitaa99a69e9eb42fc058a921ed8e793396ff4f506e
treee5ab4a6c0cbbc46034cac07a041885bcc94859e1
parentb091f85b80de2d94a0703d86c1424b1f34fffc47
gdb: add tests for per-inferior settings

I am currently upstreaming some patches from ROCgdb that were made a few
years ago. This series cleans up how the CLI and MI access parameters
for multiple inferiors.

A preceding patch (702991711a91 ("gdb: Have setter and getter callbacks
for settings")) allowed for per-inferior getter/setter functions of some
inferior-specific settings. Over the years a few changes were accepted
upstream (cc09d372f664 ("gdb: make set/show args work with
$_gdb_setting_str")) that implemented those capabilities.

This patch adds a few tests to verify that those settings are properly
set and accessed from the CLI, MI as well as the python interface.

Co-Authored-By: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I7a5eab210c84d6a6782a32125f68bde34d9a2339
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/testsuite/gdb.base/setshow.exp
gdb/testsuite/gdb.base/with.exp
gdb/testsuite/gdb.mi/set-show.exp [new file with mode: 0644]
gdb/testsuite/gdb.python/py-parameter.exp