Re: How to tell gdb about dlls using remote protocol

Daniel Jacobowitz
2007-02-08T23:00:56Z

On Thu, Feb 08, 2007 at 10:14:37PM +0100, Mark Kettenis wrote:
> Me neither. However, Joel's diff has a problem: it makes the
> signull.exp tests fail. They explicitly test calling a null pointer,
> and that case is now caught by Joel's check. Skipping a frame in that
> case is not acceptable to me.
>
> I'm currently testing chaning Joel's original:
>
> else if (cache->pc == 0)
>
> into:
>
> else if (cache->pc == 0 && frame_pc_unwind (next_frame) != 0)
>
> What do you think of that?

Can we actually check for a failure to find the start address? Using
pc == 0 is unfortunate - we keep encountering people who link code at
zero.

Oh, I guess there's no way; we already use the pc != 0 check in the
same function.

--
Daniel Jacobowitz
CodeSourcery