Re: [PATCH] parisc: fix unwind with recent gcc versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2009-11-29 at 09:34 -0800, Linus Torvalds wrote:
> Also, are the PARISC people 100% sure that you really want unwinding in 
> the first place? We got rid of it as being terminally broken on x86, 
> because tools and asm always got it wrong, and special things like irq 
> frames etc continually broke it in the most annoying ways possible (ie 
> WARN_ON() statements became fatal oopses due to unwind errors etc).
> 
> Having a tentative and unreliable stack trace is generally better than 
> a totally broken one.

Being a risc system, we don't have a lot of choice.  returns on parisc
are conventionally jump through register two, so without unwind
information we have no idea where in the stack frame (or even if)
they're stored.  Our other problem is that our stack frames have a
predefined size which often doesn't get fully filled, so the stack gets
gummed up with a lot of cruft from previous calls; thus even if we just
trawl it for relevant addresses, we get a lot of bogus information.

Look at it this way:  our unwind information has to be correct otherwise
the debugger would continually fail on the platform, so the tool chain
has an incentive to get it right.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux