aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-03-28 09:46:55 -0600
committerTom Tromey <tromey@adacore.com>2022-03-30 09:08:48 -0600
commitc50e54825bfea1ab6afbd984a4d2e78e9306e70f (patch)
tree661e2a6a793aeb0a6ede10a3c5543253cc96eb08 /gdb/top.c
parentd537777dfe634f3109125156484e33d421b03f1b (diff)
downloadgdb-c50e54825bfea1ab6afbd984a4d2e78e9306e70f.zip
gdb-c50e54825bfea1ab6afbd984a4d2e78e9306e70f.tar.gz
gdb-c50e54825bfea1ab6afbd984a4d2e78e9306e70f.tar.bz2
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.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 0 insertions, 4 deletions
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. */