Bug 10588 - The handle command should accept user defined commands after 'stop'
Summary: The handle command should accept user defined commands after 'stop'
Status: RESOLVED DUPLICATE of bug 7221
Alias: None
Product: gdb
Classification: Unclassified
Component: breakpoints (show other bugs)
Version: 6.8
: P2 enhancement
Target Milestone: 6.8
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-02 14:45 UTC by Joseph Garvin
Modified: 2009-09-02 15:29 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Garvin 2009-09-02 14:45:19 UTC
It'd be nice if you could create a command using 'define' and then use 'handle'
to specify that when a signal is given you want execution to pause *and* execute
your command. This can be useful for diagnosing time sensitive bugs (my command
might include some 'shell sleep' calls) or GUIs where you don't want to move
your mouse back to the terminal window because it'll trigger more X events.
Comment 1 Tom Tromey 2009-09-02 15:29:40 UTC
I'm closing this as a dup; I think it is a restatement of the
"catch signal" idea.

*** This bug has been marked as a duplicate of 7221 ***