From: Nick Roberts <nickrob@snap.net.nz>
To: Daniel Jacobowitz <drow@false.org>
Cc: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sourceware.org
Subject: Re: minimalistic MI catch support
Date: Fri, 10 Feb 2006 20:17:00 -0000 [thread overview]
Message-ID: <17388.62590.117990.323555@kahikatea.snap.net.nz> (raw)
In-Reply-To: <20060210141138.GA21506@nevyn.them.org>
> > > The second two have their own type: "catch fork" and "catch exec" (I
> > > must admit that I don't understand how this gives differerent behaviour
> > > from using "break fork" and "break exec").
>
> They are associated with the system events reported for fork and exec.
> That means that in addition to the above, they'll catch things like
> clone with appropriate arguments, execlp, direct use of syscall()...
>
> Also, they give GDB external knowledge about what's going on, enabling
> it to track the child of the fork, or the target of the exec. That
> latter is currently disabled because the code and user interface
> for following exec were such a mess.
>
> > > Also for some reason, they have no address.
>
> Unlike a breakpoint, they are associated with an event and not an
> address. They aren't at all like breakpoints.
OK thanks for explaining the difference. I would still say that they are
a _bit_ like breakpoints (they stop execution if fork or exec are called)
and I guess thats why their details are given in "info breakpoints".
Are you saying "catch fork" and "catch exec" aren't at all like
"catch catch" and "catch throw" which do have addresses? If so, perhaps
some clearer distinction could be made to the user/in MI output.
Nick
next prev parent reply other threads:[~2006-02-10 20:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-09 6:28 Nick Roberts
2006-02-10 6:34 ` Nick Roberts
2006-02-10 11:25 ` Eli Zaretskii
2006-02-10 14:11 ` Daniel Jacobowitz
2006-02-10 15:41 ` Eli Zaretskii
2006-02-10 16:48 ` Daniel Jacobowitz
2006-02-10 18:40 ` Eli Zaretskii
2006-02-10 18:52 ` Daniel Jacobowitz
2006-02-10 20:17 ` Nick Roberts [this message]
2006-02-10 20:20 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2006-01-28 13:04 Markus Schiltknecht
2006-02-06 23:29 ` Daniel Jacobowitz
2006-02-07 1:15 ` Bob Rossi
2006-02-07 3:00 ` Daniel Jacobowitz
2006-02-07 12:01 ` Markus Schiltknecht
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=17388.62590.117990.323555@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=drow@false.org \
--cc=eliz@gnu.org \
--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