This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
Re: patch to add breakpoint commands
- From: Andrew Cagney <cagney at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: frysk at sourceware dot org
- Date: Wed, 05 Mar 2008 12:42:07 -0500
- Subject: Re: patch to add breakpoint commands
- References: <18382.49031.893322.680963@fleche.redhat.com>
Tom Tromey wrote:
Here's a patch that adds breakpoint commands. I recommend not
committing it, because it is ugly, but I thought I'd post it so folks
can see what needs to be done.
Problems with this:
* I really wanted to give commands a "-silent" option (I never liked
gdb's "'silent' is a magical first command" thing) -- but doing this
would mean hooking into BreakpointCommand.
I have to agree; hpd describes this entire group as "actionpoints" and
lists:
- breakpoints
- watchpoints
- barrier
and we've suggestions for additions such as:
- catch syscall
- catch dlopen (?)
- catch signal
- catch fork
- catch clone
- catch exec
for all of these they have several things:
- the commands to run when the event is triggered
- should the hit be verbose or silent
- should the end result be to stop or continue (attribute or not?)
- ?
that can be characterised as attributes; as, dare I suggest, you're
reading into the intent of the HPD, the way to do this is would be with
-silent option to the commands that create and edit (see actions)
actionpoints.
Andrew