Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

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
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> gdb background process Page: [1]
Login
Message << Older Topic   Newer Topic >>
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.
Post #: 1
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).

(in reply to lforster)
Post #: 2
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> gdb background process Page: [1]
Jump to:





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


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.016