Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Fix "directory" command problem under "set confirm off"
@ 2008-03-06 12:39 Hidetaka Takano
  2008-03-06 20:47 ` Michael Snyder
  0 siblings, 1 reply; 6+ messages in thread
From: Hidetaka Takano @ 2008-03-06 12:39 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

Hi maintainer,

I'll send the patch to fix the "directory" command problem.

When the directory command is issued without any parameters,
the source search path is supposed to be initialized.
But it doesn't work under "set confirm off".


ChangeLog:

2008-03-06  Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>

	* source.c (directory_command): modify the determination of
	condition of terminal "from_tty".

Best regard.
---
Hidetaka Takano / Toshiba

[-- Attachment #2: fix-directory-confirm-off2.diff --]
[-- Type: application/octet-stream, Size: 514 bytes --]

diff -urpN src-org/gdb/source.c src/gdb/source.c
--- src-org/gdb/source.c	2008-02-09 07:20:48.000000000 +0900
+++ src/gdb/source.c	2008-03-04 13:33:58.000000000 +0900
@@ -369,7 +369,7 @@ directory_command (char *dirname, int fr
   /* 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 ();

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-10 20:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-06 12:39 [patch] Fix "directory" command problem under "set confirm off" Hidetaka Takano
2008-03-06 20:47 ` Michael Snyder
2008-03-10  3:06   ` Hidetaka Takano
2008-03-10 12:35     ` Ulrich Weigand
2008-03-10 12:47       ` Daniel Jacobowitz
2008-03-10 20:54         ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox