OSDN Git Service

2008-03-06 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
authorMichael Snyder <msnyder@specifix.com>
Mon, 10 Mar 2008 20:53:29 +0000 (20:53 +0000)
committerMichael Snyder <msnyder@specifix.com>
Mon, 10 Mar 2008 20:53:29 +0000 (20:53 +0000)
* source.c (directory_command): Modify the determination of
condition of terminal "from_tty".

gdb/ChangeLog
gdb/source.c

index 832d0ed..b53c05c 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-06  Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
+
+       * source.c (directory_command): Modify the determination of
+       condition of terminal "from_tty".
+
 2008-03-10  Matt Rice  <ratmice@gmail.com>
 
        * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
index 4ed4ec0..7cbd55f 100644 (file)
@@ -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 ();