From: msnyder Date: Mon, 10 Mar 2008 20:53:28 +0000 (+0000) Subject: 2008-03-06 Hidetaka Takano X-Git-Tag: EOL_registry_mounts~300 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2317b7efbef8f14629bc807abac06183091cf77d;p=pf3gnuchains%2Fpf3gnuchains4x.git 2008-03-06 Hidetaka Takano * source.c (directory_command): Modify the determination of condition of terminal "from_tty". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 832d0ed7e8..b53c05c546 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-03-06 Hidetaka Takano + + * source.c (directory_command): Modify the determination of + condition of terminal "from_tty". + 2008-03-10 Matt Rice * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC. diff --git a/gdb/source.c b/gdb/source.c index 4ed4ec02cb..7cbd55f25b 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 ();