diff options
author | Doug Evans <dje@google.com> | 2014-05-16 12:15:10 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-05-16 12:15:10 -0700 |
commit | 8d551b0239b795065ecd2cb2bd3cae2e9ee2a7df (patch) | |
tree | 7514560ea6c4786e6ec8e883e5cdc8a6312eba5c /gdb/doc | |
parent | 18848e288ca9d1ca242cce667419bbb6728442fc (diff) | |
download | gdb-8d551b0239b795065ecd2cb2bd3cae2e9ee2a7df.zip gdb-8d551b0239b795065ecd2cb2bd3cae2e9ee2a7df.tar.gz gdb-8d551b0239b795065ecd2cb2bd3cae2e9ee2a7df.tar.bz2 |
New command line option -D.
* NEWS: Mention it.
* main.c (set_gdb_data_directory): New function.
(captured_main): Recognize -D. Flag error for --data-directory "".
Call set_gdb_data_directory.
(print_gdb_help): Print --data-directory, -D.
* main.h (set_gdb_data_directory): Declare.
* top.c (staged_gdb_datadir): New static global.
(set_gdb_datadir): Call set_gdb_data_directory
(show_gdb_datadir): New function.
(init_main): Update init of data-directory parameter.
testsuite/
* gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir):
Update.
(do_syscall_tests_without_xml): Update.
doc/
* gdb.texinfo (Mode Options): Add -D.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 7c1d1bb..f3cceba 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2014-05-16 Doug Evans <dje@google.com> + + * gdb.texinfo (Mode Options): Add -D. + 2014-05-09 Samuel Bronson <naesten@gmail.com> * Makefile.in (PACKAGE): Copy from ../Makefile.in in case of diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 2aff5e5..49a0602 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1164,7 +1164,9 @@ Run @value{GDBN} using @var{directory} as its working directory, instead of the current directory. @item -data-directory @var{directory} +@itemx -D @var{directory} @cindex @code{--data-directory} +@cindex @code{-D} Run @value{GDBN} using @var{directory} as its data directory. The data directory is where @value{GDBN} searches for its auxiliary files. @xref{Data Files}. |