summaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-12-07 17:26:00 +0000
committerDoug Evans <dje@google.com>2010-12-07 17:26:00 +0000
commit47ec54a885067d30025c3adeca6bb7859196d1c0 (patch)
treee2ef1704245e366d8b257e0729f8a1c8b8ef4ba6 /gdb/main.c
parent208f1fe14d05fae1b312d5c4f93d2fbcba7ec099 (diff)
downloadgdb-47ec54a885067d30025c3adeca6bb7859196d1c0.tar.gz
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 9bd36cf20b0..c686bd29915 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':
{