From: Nick Roberts <nickrob@snap.net.nz>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sourceware.org
Subject: Re: MI: event notification
Date: Wed, 21 Jun 2006 02:31:00 -0000 [thread overview]
Message-ID: <17560.44395.508930.351917@kahikatea.snap.net.nz> (raw)
In-Reply-To: <20060621013437.GA17956@nevyn.them.org>
> > Using the patch, "=stack-changed\n" gets printed every time the stack
> > changes e.g
>
> Good idea in general, bad choice of example. This is not a valid
> optimization, at least not where you put it.
>
> - Stepping within a frame can change the values displayed by
> -stack-list-arguments. On most targets + compilers they
> are sometimes corrupt at the beginning of a function. On
> many targets the "incoming" value of the argument changes
> when that variable is assigned to.
In this case, though, -stack-list-frames would be unchanged?
> - You can encounter the same frame ID for two consecutive stops
> but have a different backtrace, e.g. if you continued and then
> hit a breakpoint near the same function.
Do you mean that with something like:
...
myproc (arg1);
myproc (arg2);
the frame id on the second call to myproc would be identical to the
first? Presumably the output to -stack-list-frames would be unchanged
in this case also.
> A good place to start might be asking the Xcode folks where they put
> events. I know they put a bunch of them, e.g. shlib related. I don't
> know if they're all suitable for GDB/MI, but I bet most of them are.
> (And I think I talked with Jim about this particular one at some point,
> and they either didn't have one, or didn't use it for much).
If they can give me a few clues that will be great, but I only want to trawl
through the code in Darwin, like I did for the asynchronous stuff, as a last
resort. I am hoping that this will be an easier nut to crack.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2006-06-21 2:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-21 1:34 Nick Roberts
2006-06-21 2:23 ` Daniel Jacobowitz
2006-06-21 2:31 ` Nick Roberts [this message]
2006-06-21 4:50 ` Daniel Jacobowitz
2006-07-10 20:43 ` Jim Ingham
2006-07-16 4:34 ` Nick Roberts
2006-07-17 22:00 ` Jim Ingham
2006-07-17 23:02 ` Nick Roberts
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=17560.44395.508930.351917@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=drow@false.org \
--cc=gdb@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