kdb
[Top] [All Lists]

Re: question about setting breakpoint on functions

To: Keith Owens <kaos@xxxxxxx>
Subject: Re: question about setting breakpoint on functions
From: Randolph Chung <randolph@xxxxxxxxx>
Date: Fri, 6 Aug 2004 17:14:51 -0700
Cc: kdb@xxxxxxxxxxx
In-reply-to: <23827.1091836673@ocs3.ocs.com.au>
References: <20040806202632.GZ546@tausq.org> <23827.1091836673@ocs3.ocs.com.au>
Reply-to: Randolph Chung <randolph@xxxxxxxxx>
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.5.1+cvs20040105i
> With kdb, you get what you asked for.  If you ask for a break point at
> offset 0 of a function, that is what kdb does.  Think assembler
> functions, which gdb cannot handle.

gdb can handle assembler functions.....  on some architectures even
assembler functions would need to follow ABI requirements for
prologue/epilogue, and have unwinding info. gdb also uses code reading
to do unwinding, so assembler functions can be unwound usually...

> The i386 kdb patch has its own heuristics for working out how far into
> the function the breakpoint is and for working out what state the stack
> is at that point.

ok, i will try to make kdb on parisc work under these conditions.

thanks for the clarification.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>