[0/5] Make some functions independent of current inferior

Message ID 20221124160428.83804-1-simon.marchi@efficios.com
Headers
Series Make some functions independent of current inferior |

Message

Simon Marchi Nov. 24, 2022, 4:04 p.m. UTC
  Here's a little series making some functions independent from the
current inferior, taking an inferior parameter instead.  This is in
preparation for some other work I'm doing, but I thought it could go in
as its own.

Simon Marchi (5):
  gdb: add inferior parameter to target_current_description
  gdb: add inferior parameter to set_target_gdbarch, rename to
    set_inferior_gdbarch
  gdb: add inferior parameter to gdbarch_update_p
  gdb: add inferior parameter to target_find_description
  gdb: add inferior parameter to target_clear_description

 gdb/arch-utils.c          | 45 ++++++++++++++++++------------------
 gdb/arm-tdep.c            |  2 +-
 gdb/cris-tdep.c           |  6 ++---
 gdb/gdbarch.h             |  8 +++----
 gdb/i386-darwin-nat.c     |  2 +-
 gdb/infcmd.c              |  2 +-
 gdb/infrun.c              |  4 ++--
 gdb/mips-tdep.c           | 10 ++++----
 gdb/osabi.c               |  3 ++-
 gdb/remote.c              |  8 +++----
 gdb/rs6000-aix-nat.c      |  2 +-
 gdb/rs6000-tdep.c         |  4 ++--
 gdb/target-descriptions.c | 48 +++++++++++++++++++++------------------
 gdb/target-descriptions.h | 10 ++++----
 gdb/target.c              |  2 +-
 gdb/tracefile-tfile.c     |  2 +-
 16 files changed, 82 insertions(+), 76 deletions(-)