aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-12-07 17:26:06 +0000
committerDoug Evans <dje@google.com>2010-12-07 17:26:06 +0000
commitaae1c79a03aa76ca68e9a989e7652703178362f0 (patch)
tree26d741796b72507358fc01ea1d5ae36e5c18b587 /gdb/main.c
parentc20cbc067b6fa714b4dc3e6d4025d5b11d605c80 (diff)
downloadgdb-aae1c79a03aa76ca68e9a989e7652703178362f0.zip
gdb-aae1c79a03aa76ca68e9a989e7652703178362f0.tar.gz
gdb-aae1c79a03aa76ca68e9a989e7652703178362f0.tar.bz2
PR python/12227
* NEWS: Mention -data-directory. * main.c (captured_main): Recognize -data-directory. doc/ * gdb.texinfo (Mode Options): Document -data-directory. (Data Files): Add reference to -data-directory. testsuite/ * gdb.base/catch-syscall.exp (do_syscall_tests): Remove setting of data-directory. * lib/gdb-python.exp (gdb_check_python_config): Delete, all callers updated. * lib/gdb.exp (INTERNAL_GDBFLAGS): Add -data-directory.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 9bd36cf..c686bd2 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -432,6 +432,7 @@ captured_main (void *data)
{"i", required_argument, 0, 'i'},
{"directory", required_argument, 0, 'd'},
{"d", required_argument, 0, 'd'},
+ {"data-directory", required_argument, 0, 'D'},
{"cd", required_argument, 0, OPT_CD},
{"tty", required_argument, 0, 't'},
{"baud", required_argument, 0, 'b'},
@@ -551,6 +552,10 @@ captured_main (void *data)
batch_flag = batch_silent = 1;
gdb_stdout = ui_file_new();
break;
+ case 'D':
+ xfree (gdb_datadir);
+ gdb_datadir = xstrdup (optarg);
+ break;
#ifdef GDBTK
case 'z':
{