aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-07-06 11:33:47 -0600
committerTom Tromey <tromey@adacore.com>2023-07-14 11:04:45 -0600
commit75ec09829780f8d00d8515e07101a29272a22303 (patch)
tree6ed084a6f783ee902301628e8f445917bc97d6cd /gdb/infrun.c
parentcb26e4bbedbc9149507b0f59c2f137d9e213e8c9 (diff)
downloadgdb-75ec09829780f8d00d8515e07101a29272a22303.zip
gdb-75ec09829780f8d00d8515e07101a29272a22303.tar.gz
gdb-75ec09829780f8d00d8515e07101a29272a22303.tar.bz2
Use correct inferior in Inferior.read_memory et al
A user noticed that Inferior.read_memory and a few other Python APIs will always use the currently selected inferior, not the one passed to the call. This patch fixes the bug by arranging to switch to the inferior. I found this same issue in several APIs, so this fixes them all. I also added a few missing calls to INFPY_REQUIRE_VALID to these methods. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30615 Approved-By: Pedro Alves <pedro@palves.net>
Diffstat (limited to 'gdb/infrun.c')
0 files changed, 0 insertions, 0 deletions