How to invoke kdb from c source (like Debugger() call in FreeBSD)
slurn at verisign.com
slurn at verisign.com
Mon Jan 13 15:14:46 PST 2003
>
> 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()
This would be the 'KDB_ENTER' macro, see kdb.h.
scott
More information about the kdb
mailing list