This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to tell gdb about dlls using remote protocol


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]