diff options
author | Tom Tromey <tromey@adacore.com> | 2022-03-28 09:46:55 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-03-30 09:08:48 -0600 |
commit | c50e54825bfea1ab6afbd984a4d2e78e9306e70f (patch) | |
tree | 661e2a6a793aeb0a6ede10a3c5543253cc96eb08 /gdbserver/server.cc | |
parent | d537777dfe634f3109125156484e33d421b03f1b (diff) | |
download | gdb-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 'gdbserver/server.cc')
-rw-r--r-- | gdbserver/server.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdbserver/server.cc b/gdbserver/server.cc index 8e53f22..9f52d6e 100644 --- a/gdbserver/server.cc +++ b/gdbserver/server.cc @@ -65,10 +65,6 @@ break; \ } -/* String containing the current directory (what getwd would return). */ - -char *current_directory; - /* The environment to pass to the inferior when creating it. */ static gdb_environ our_environ; |