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. --- gdbsupport/pathstuff.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdbsupport/pathstuff.cc') diff --git a/gdbsupport/pathstuff.cc b/gdbsupport/pathstuff.cc index cb2dd4f..a347123 100644 --- a/gdbsupport/pathstuff.cc +++ b/gdbsupport/pathstuff.cc @@ -29,6 +29,10 @@ /* See gdbsupport/pathstuff.h. */ +char *current_directory; + +/* See gdbsupport/pathstuff.h. */ + gdb::unique_xmalloc_ptr gdb_realpath (const char *filename) { -- cgit v1.1