From 5b8bf2e75ed61ff5bc9bb2cb9d4b8ed581ee6f19 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 18 May 2021 11:27:43 -0400 Subject: 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 --- gdbserver/inferiors.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdbserver/inferiors.cc') diff --git a/gdbserver/inferiors.cc b/gdbserver/inferiors.cc index 3750090..0a09de7 100644 --- a/gdbserver/inferiors.cc +++ b/gdbserver/inferiors.cc @@ -241,7 +241,7 @@ get_inferior_cwd () return current_inferior_cwd; } -/* See gdbsupport/common-inferior.h. */ +/* See inferiors.h. */ void set_inferior_cwd (const char *cwd) -- cgit v1.1