All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
gdb background process
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login  |
|
|
gdb background process - Sep. 10, '06, 11:06:53 AM
|
|
|
lforster
Posts: 11
Joined: Dec. 12, '05,
Status: offline
|
I have a background process I’d like to debug. I’ve placed a sleep loop at the top:
static int debug = 1;
main(int argc, char **argv)
{
while(debug)
sleep(10);
if (sock_read (&msgtyp, 1) < 0)
I can attach to the process with gdb, and I can change the variable [ set var debug = 0 ] and set a breakpoint following the loop, but when I continue, the breakpoint is never reached.
|
|
|
RE: gdb background process - Sep. 10, '06, 10:12:44 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
|
I don't know why offhand.
I'd just work around it by setting a longer sleep (no loop).
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|