]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: un-share set_inferior_cwd declaration
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 18 May 2021 15:27:43 +0000 (11:27 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 23 Jul 2021 19:38:54 +0000 (15:38 -0400)
commit5b8bf2e75ed61ff5bc9bb2cb9d4b8ed581ee6f19
tree51d19e27f6da4870ba0a08d6f6598487de30dc82
parente116324103cecf418ecb0947a47330c1ad9e1e40
gdb: un-share set_inferior_cwd declaration

The declaration of set_inferior_cwd is currently shared between gdb and
gdbserver, in gdbsupport/common-inferior.h.  It doesn't need to be, as
set_inferior_cwd is not called from common code.  Only get_inferior_cwd
needs to.

The motivation for this is that a future patch will change the prototype
of set_inferior_cwd in gdb, and I don't want to change it for gdbserver
unnecessarily.  I see this as a good cleanup in any case, to reduce to
just the essential what is shared between GDB and GDBserver.

Change-Id: I3127d27d078f0503ebf5ccc6fddf14f212426a73
gdb/infcmd.c
gdbserver/inferiors.cc
gdbserver/inferiors.h
gdbsupport/common-inferior.h