aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-18 11:27:43 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-07-23 15:38:54 -0400
commit5b8bf2e75ed61ff5bc9bb2cb9d4b8ed581ee6f19 (patch)
tree51d19e27f6da4870ba0a08d6f6598487de30dc82 /gdb/infcmd.c
parente116324103cecf418ecb0947a47330c1ad9e1e40 (diff)
downloadgdb-5b8bf2e75ed61ff5bc9bb2cb9d4b8ed581ee6f19.zip
gdb-5b8bf2e75ed61ff5bc9bb2cb9d4b8ed581ee6f19.tar.gz
gdb-5b8bf2e75ed61ff5bc9bb2cb9d4b8ed581ee6f19.tar.bz2
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
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 0a5edef..a7b520c 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -184,9 +184,10 @@ show_args_command (struct ui_file *file, int from_tty,
deprecated_show_value_hack (file, from_tty, c, get_inferior_args ());
}
-/* See gdbsupport/common-inferior.h. */
+/* Set the inferior current working directory. If CWD is NULL, unset
+ the directory. */
-void
+static void
set_inferior_cwd (const char *cwd)
{
struct inferior *inf = current_inferior ();