diff options
author | Michael Snyder <msnyder@specifix.com> | 2008-03-10 20:53:29 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2008-03-10 20:53:29 +0000 |
commit | 657706e8dbace472a9c1adb197c9ea4c4f6759a5 (patch) | |
tree | 6dde3fa4f3bc2657f26859eacac8859941b873ff /gdb/source.c | |
parent | 3f26400cda5eeb0803abb53147fb6ab107904a35 (diff) | |
download | gdb-657706e8dbace472a9c1adb197c9ea4c4f6759a5.tar.gz |
2008-03-06 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
* source.c (directory_command): Modify the determination of
condition of terminal "from_tty".
Diffstat (limited to 'gdb/source.c')
-rw-r--r-- | gdb/source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c index 4ed4ec02cb2..7cbd55f25bc 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -369,7 +369,7 @@ directory_command (char *dirname, int from_tty) /* FIXME, this goes to "delete dir"... */ if (dirname == 0) { - if (from_tty && query (_("Reinitialize source path to empty? "))) + if (!from_tty || query (_("Reinitialize source path to empty? "))) { xfree (source_path); init_source_path (); |