From c50e54825bfea1ab6afbd984a4d2e78e9306e70f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 28 Mar 2022 09:46:55 -0600 Subject: Consolidate definition of current_directory I noticed that both gdbserver and gdb define current_directory. However, as it is referenced by gdbsupport, it seemed better to define it there as well. This patch also moves the declaration to pathstuff.h. Tested by rebuilding. --- gdb/top.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gdb') diff --git a/gdb/top.c b/gdb/top.c index a28e72f..f12a211 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -141,10 +141,6 @@ show_confirm (struct ui_file *file, int from_tty, value); } -/* Current working directory. */ - -char *current_directory; - /* The last command line executed on the console. Used for command repetitions when the user enters an empty line. */ -- cgit v1.1