This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFC] Infinite backtraces...


> argh, i was wrong... the stub unwinder handles the case when pc == 0,
> and then it assumes that the rp doesn't get modified by default.

OK.

> there's also a bug in the outer __pthread_create_system frame; the stub
> unwinder doesn't set the rp appropriately. can you try the attached
> patch? it should convert your infinite backtrace into an error ;-)

I gave it a try. I see the error, but a bit too early. That's because
I have a stub in the middle of my call stack. Here is what I get now:

    (gdb) bt
    #0  simple.break_me () at simple.adb:27
    #1  0x0000a2cc in simple.caller (<_task>=0x4001c3a0) at simple.adb:21
    #2  0x0000a268 in simple__callerB___2 () at simple.adb:18
    #3  0x0000a268 in simple__callerB___2 () at simple.adb:18
    warning: Previous frame identical to this frame (corrupt stack?)

(this was with 6.3, do you think HEAD would behave better?)

-- 
Joel


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