From: Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
To: gdb-patches@sourceware.org
Subject: [patch] Fix "directory" command problem under "set confirm off"
Date: Thu, 06 Mar 2008 12:39:00 -0000 [thread overview]
Message-ID: <002901c87f87$12218bc0$f61e4f9d@MOSTPCMSS20377> (raw)
[-- 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 ();
next reply other threads:[~2008-03-06 12:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 12:39 Hidetaka Takano [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002901c87f87$12218bc0$f61e4f9d@MOSTPCMSS20377' \
--to=hidetaka.takano@glb.toshiba.co.jp \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox