kdb
[Top] [All Lists]

Re: How to invoke kdb from c source (like Debugger() call in FreeBSD)

To: bgnaidu@xxxxxxxxx (naidu bollineni)
Subject: Re: How to invoke kdb from c source (like Debugger() call in FreeBSD)
From: <slurn@xxxxxxxxxxxx>
Date: Mon, 13 Jan 2003 15:14:46 -0800 (PST)
Cc: kdb@xxxxxxxxxxx
In-reply-to: <no.id> from "naidu bollineni" at Jan 13, 2003 02:43:00 PM
Sender: kdb-bounce@xxxxxxxxxxx
> 
> 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


<Prev in Thread] Current Thread [Next in Thread>