aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-05-16 12:15:10 -0700
committerDoug Evans <dje@google.com>2014-05-16 12:15:10 -0700
commit8d551b0239b795065ecd2cb2bd3cae2e9ee2a7df (patch)
tree7514560ea6c4786e6ec8e883e5cdc8a6312eba5c /gdb/main.h
parent18848e288ca9d1ca242cce667419bbb6728442fc (diff)
downloadgdb-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/main.h')
-rw-r--r--gdb/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/main.h b/gdb/main.h
index 089e1c8..502ca30 100644
--- a/gdb/main.h
+++ b/gdb/main.h
@@ -47,4 +47,6 @@ extern char *windows_get_absolute_argv0 (const char *argv0);
parse the argv array. */
extern const char *get_gdb_program_name (void);
+extern void set_gdb_data_directory (const char *new_data_dir);
+
#endif