summaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2008-03-10 20:53:29 +0000
committerMichael Snyder <msnyder@specifix.com>2008-03-10 20:53:29 +0000
commit657706e8dbace472a9c1adb197c9ea4c4f6759a5 (patch)
tree6dde3fa4f3bc2657f26859eacac8859941b873ff /gdb/source.c
parent3f26400cda5eeb0803abb53147fb6ab107904a35 (diff)
downloadgdb-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.c2
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 ();