Consolidate definition of current_directory
authorTom Tromey <tromey@adacore.com>
Mon, 28 Mar 2022 15:46:55 +0000 (09:46 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 30 Mar 2022 15:08:48 +0000 (09:08 -0600)
commitc50e54825bfea1ab6afbd984a4d2e78e9306e70f
tree661e2a6a793aeb0a6ede10a3c5543253cc96eb08
parentd537777dfe634f3109125156484e33d421b03f1b
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
gdbserver/server.cc
gdbsupport/common-defs.h
gdbsupport/pathstuff.cc
gdbsupport/pathstuff.h