Hi,

I have been using kdb without much difficulty on an
X86 platform over serial line for development. Thanks
for the  effort. I had past experience with other such
tools where they provide a mechanism to invoke
debugger from the C source and compile, so that the
program enters debugger(kdb) in the event of hitting
that code path. Here is an example of how that works:
...
if (my_test_condition_is_met) {
    print something about the condition
    invoke_debugger()
}
...
In the above statement, invoke_debugger can be
replaced with Debugger() call in FreeBSD, and
debug_enter() in case of Solaris. That has the same
effect as manually going to kdb and setting a
breakpoint in that area. The  added advantage is there
can be unlimited such invokations anywhere in the code
which is difficult for developer to put at the moment
of debugging the system.

Is it possible to make such a change to the linux
debugger kdb as well ? Can you suggest some pieces of
code where I can make changes and have such facility.

Thanks.

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

Reply via email to