forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -213,9 +213,6 @@
|
||||
/* Pull in gdb::unique_xmalloc_ptr. */
|
||||
#include "gdbsupport/gdb_unique_ptr.h"
|
||||
|
||||
/* String containing the current directory (what getwd would return). */
|
||||
extern char *current_directory;
|
||||
|
||||
/* sbrk on macOS is not useful for our purposes, since sbrk(0) always
|
||||
returns the same value. brk/sbrk on macOS is just an emulation
|
||||
that always returns a pointer to a 4MB section reserved for
|
||||
|
||||
Reference in New Issue
Block a user