diff options
author | Tom Tromey <tromey@adacore.com> | 2023-07-06 11:33:47 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-07-14 11:04:45 -0600 |
commit | 75ec09829780f8d00d8515e07101a29272a22303 (patch) | |
tree | 6ed084a6f783ee902301628e8f445917bc97d6cd /gdb/infrun.c | |
parent | cb26e4bbedbc9149507b0f59c2f137d9e213e8c9 (diff) | |
download | gdb-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