Re: How to tell gdb about dlls using remote protocol

Daniel Jacobowitz
2007-02-01T22:54:47Z

On Thu, Feb 01, 2007 at 09:53:11AM -0800, Joel Brobecker wrote:
> This makes me wonder how well the debugger can work in certain
> situations like when backtracing from DLL code. If the debugger
> doesn't know where it is, then it's probably let to prologue analysis
> to do the unwinding. Except that it cannot determine where the prologue
> is... In that case, I see that the i386 unwinder assumes that the frame
> base can be deduced from the SP and the SP offset. Unfortunately,
> this SP offset can only be deduced from prologue analysis. Catch 22?

In general, if we can not find the start of the current function,
we have absolutely no chance of getting out of it.

This is a standard problem e.g. with the Windows system DLLs, since
we have inadequate means to recover symbol information from them.

--
Daniel Jacobowitz
CodeSourcery