This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Breakpoint Handling For Dynamic Processes
- From: veenu khanna <veenu_khanna at yahoo dot com>
- To: gdb at sourceware dot org
- Date: Mon, 12 Feb 2007 11:30:10 -0800 (PST)
- Subject: Breakpoint Handling For Dynamic Processes
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