Breakpoint Handling For Dynamic Processes

veenu khanna veenu_khanna@yahoo.com
Mon Feb 12 21:02:00 GMT 2007


Hello,
Thanx for you replies. I have another question.

In our OS, one can only attach to a process when it is running.
And we only have dynamic processes.
Hence, arises the problem of applying a breakpont to stop a
process.
Thus, We need a way to apply a breakpoint even before a process
is attached. 
What if we write a special stub which has the responsibility to
apply breakpoints on the target. These bps will end up in some
process address space. 
So When a process will be attached to via another stub say
(gdbserver), Will gdb be aware of all the bps for this process
which were applied even before an attach took place?
And will it behave in the usual way like when a BP would have
been applied after a process was attached.

Or does anyone have ideas on how to solve the problem of
debugging dynamic processes which can only be attached to if it
is running.

Veenu 


 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL



More information about the Gdb mailing list