[RFC] Infinite backtraces...
Tue Dec 7 16:37:00 GMT 2004
> i haven't seen it hit that case; i think since this_id is null_frame_id
> in this case it will not query the frame for registers. should i fill
> in dummy values just in case?
I had the same analysis that it should never happen. If Andrew agrees,
I would recommend simply putting an assertion instead. Putting a dummy
value is not that satisfactory, as you don't know what this is going
to be used for.
> > One thing that I'm thinking is that this will no longer stop the
> > backtrace once your change to hide the stubs goes in (except in
> > the very unlikely case when we're inside the initial stub). Is it
> > still worth including this patch under these conditions?
> why is that? even with my export stub change this is still applicable to
> your threading case....
I don't see how the stub unwinder code is going to be used if you
are going to be skipping them. The only case when it is going to
be used is when uwinding a program that was stopped just inside one.
More information about the Gdb-patches