Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Ingham <jingham@apple.com>
To: Andrew Cagney <ac131313@ges.redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] breakpoints and function prologues...
Date: Sun, 25 Aug 2002 15:24:00 -0000	[thread overview]
Message-ID: <C1E21BC0-B878-11D6-8D19-000A277A8808@apple.com> (raw)
In-Reply-To: <3D68EAAE.8050007@ges.redhat.com>


On Sunday, August 25, 2002, at 07:33  AM, Andrew Cagney wrote:

>> Yes, we could change -break-insert to do this.
>> It would still break when somebody uses the console to set 
>> breakpoints from within Project Builder, however.  Like with Insight, 
>> we try to support the console as well as we can from PB (we don't do 
>> as good a job as Insight, but we are working towards it).
>
> We're talking Mac here right?  I thought (sarcasm) Mac users did 
> everything using the GUI and AppleScript.

Sadly enough, half of our users are of the "If it ain't in the GUI, I 
won't use it!" camp, and the other half - from the NeXT side or that 
odd Unix developer or two who actually like GUI's - insist on using all 
the command line features as well.  Those folks are why we actually had 
to get all the mi-console stuff Keith is so kindly incorporating for 
eclipse working...  Anyway, we don't get off easy on either score.

I am not quite sure what the point was here, however...

>
>> I guess we could go note the breakpoint set event, delete the 
>> breakpoint that was just set IF it was set with file:line, and reset 
>> it with the "move me past the prologue" cookie.  But this seems a bit 
>> of a hack.
>
> Is your [apple] bug with a GUI user finding that a breakpoint on a 
> function confuses the GUI; or with a GUI user finding that entering 
> the CLI command ``break file.c:10'' confuses the GUI?  (A CLI user 
> would have used ``break func'' :-)
>

The latter.

> We've concluded that the former can be fixed without any need to 
> change the CLI.

Why would this be a problem at all?  You get a breakpoint message from 
the MI, and so long as the GUI knows how to take apart the location 
information you are good to go.  It took a little bit of work to get 
typing "continue" in the console not to confuse the GUI, and even  a 
bit more to get things like breakpoints commands that continue the 
inferior to work properly.  But just noticing a breakpoint hit is dead 
easy.

>
> For the latter, the user can still enter ``break *0x1234'' and confuse 
> the GUI.  Should GDB ``helpfully'' move that as well?  I think the 
> only thing that can be done is ensure that the GUI doesn't get 
> confused (or at least gets confused gracefully :-).  For instance, 
> realise that its got a PC in the prologue and display ``incomplete 
> stack frame''.

You are joking about moving an explicit address breakpoint, right?  
Cause I am slightly serious about the original point.  OTOH, I am not 
that serious - the patch is tiny, and one I don't at all mind keeping 
as a diff in our sources.

And yup, breaking on an address will confuse things too.  Fortunately, 
none of our users have done this, or the ones that did have been savvy 
enough to cope with the side-effects of their actions.

Jim
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Jim Ingham                                                           
jingham@apple.com
Developer Tools - gdb


  parent reply	other threads:[~2002-08-25 22:19 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1030059293.13128.ezmlm@sources.redhat.com>
2002-08-23 10:50 ` Jim Ingham
2002-08-23 11:34   ` Andrew Cagney
2002-08-24 18:31     ` Jim Ingham
2002-08-25  7:45       ` Andrew Cagney
2002-08-25  8:21         ` Daniel Jacobowitz
2002-08-25 15:24         ` Jim Ingham [this message]
2002-08-23 11:45   ` Michael Snyder
2002-08-23 11:48     ` Daniel Jacobowitz
     [not found] <1029446396.15888.ezmlm@sources.redhat.com>
2002-08-15 15:26 ` Jim Ingham
2002-08-15 18:05   ` Andrew Cagney
2002-08-15 19:11     ` Joel Brobecker
2002-08-16 10:02       ` Jim Blandy
2002-08-16 10:17         ` Joel Brobecker
2002-08-15 19:18     ` Daniel Jacobowitz
2002-08-16  9:34     ` Jim Blandy
2002-08-16 11:34     ` Jim Ingham
2002-08-22 15:38     ` Michael Snyder
2002-08-22 15:56       ` Andrew Cagney
2002-08-22 16:34         ` Michael Snyder
     [not found] <1028439120.16228.ezmlm@sources.redhat.com>
2002-08-06 13:37 ` Jim Ingham
2002-08-14 22:57   ` Andrew Cagney
2002-08-15  6:53     ` Daniel Jacobowitz
2002-08-22 15:33       ` Michael Snyder
2002-08-22 16:19         ` Joel Brobecker
2002-08-23 11:27         ` Daniel Jacobowitz
     [not found] <1027384602.26926.ezmlm@sources.redhat.com>
2002-07-22 18:54 ` Jim Ingham
2002-07-22 22:49   ` Joel Brobecker
2002-07-22 17:36 Joel Brobecker
2002-07-23 16:53 ` Jim Blandy
2002-07-26  6:12   ` Joel Brobecker
2002-07-29 13:34     ` Daniel Jacobowitz
2002-07-29 23:57     ` Jim Blandy
2002-07-30 20:18       ` Joel Brobecker
2002-07-31 13:55         ` Jim Blandy
2002-08-01 15:44           ` Michael Snyder
2002-08-02 23:48             ` Jim Blandy

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=C1E21BC0-B878-11D6-8D19-000A277A8808@apple.com \
    --to=jingham@apple.com \
    --cc=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /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