Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Andrew STUBBS <andrew.stubbs@st.com>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>,
	gdb-patches@sourceware.org, 	insight@sourceware.org
Subject: Re: [PATCH] Don't call Insight hooks when not appropriate
Date: Wed, 29 Mar 2006 16:38:00 -0000	[thread overview]
Message-ID: <20060329154931.GA31875@nevyn.them.org> (raw)
In-Reply-To: <442AAA5F.1010004@st.com>

On Wed, Mar 29, 2006 at 04:40:15PM +0100, Andrew STUBBS wrote:
> Daniel Jacobowitz wrote:
> >>I haven't actually tested it, but shouldn't gdbtk_readline() and 
> >>gdbtk_query() return values? In particular, gdbtk_query() should return 
> >>1 (yes) as the default answer, just as query() does in utils.c.
> >
> >You're right; my patch won't work.  How about this one instead?  Make
> >input_from_terminal_p do something sensible for Insight.
> 
> I'm a little confused now. I assume you meant to retain the cli-script.c
> and top.h patches from your previous posting, but, even so, your patch
> doesn't even attempt to tackle the problems with query() and
> read_command_lines().

I'm confused - did you try the same patch I posted?  There was a top.h
diff in what I posted, and a cli-script.c patch.

I changed the behavior of input_from_terminal_p (yes, removal of the
caution check was deliberate - I audited all the callers), and moved it
above the calls to deprecated_query_hook.  That should have fixed the
query case.  Similarly read_command_lines's call to the deprecated
hooks is now guarded by input_from_terminal_p ().

It looked much like what you've posted below, except more thorough
(e.g. you missed defaulted_query).  I can see the whole patch in the
list archives, so I wonder if your mail client ate it.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-03-29 15:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09 18:15 Andrew STUBBS
2006-03-09 19:49 ` Mark Kettenis
2006-03-09 20:03   ` Daniel Jacobowitz
2006-03-09 20:04     ` Daniel Jacobowitz
2006-03-10  0:19     ` Michael Snyder
2006-03-10 19:09       ` Andrew STUBBS
2006-03-10 19:16     ` Andrew STUBBS
2006-03-25  7:00       ` Daniel Jacobowitz
2006-03-27 19:57         ` Andrew STUBBS
2006-03-28 22:18           ` Daniel Jacobowitz
2006-03-29 16:29             ` Andrew STUBBS
2006-03-29 16:38               ` Daniel Jacobowitz [this message]
2006-03-29 16:45                 ` Andrew STUBBS
2006-03-29 18:01                   ` Daniel Jacobowitz
2006-03-29 18:27                     ` Andrew STUBBS
2006-03-29 22:53                       ` Dave Korn
2006-03-29 23:00                       ` Eli Zaretskii
2006-03-29 23:22                       ` Daniel Jacobowitz

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=20060329154931.GA31875@nevyn.them.org \
    --to=drow@false.org \
    --cc=andrew.stubbs@st.com \
    --cc=gdb-patches@sourceware.org \
    --cc=insight@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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