This is the mail archive of the
mailing list for the GDB project.
Re: [rfa] ARM prologue parsing support for Thumb-2 instructions
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: matthew dot gretton-dann at arm dot com, rearnsha at arm dot com, gdb-patches at sourceware dot org
- Date: Fri, 8 Oct 2010 09:27:48 -0400
- Subject: Re: [rfa] ARM prologue parsing support for Thumb-2 instructions
- References: <20100719141029.GI6088@caradoc.them.org> <201010081254.o98CsxQj011545@d12av02.megacenter.de.ibm.com>
On Fri, Oct 08, 2010 at 02:54:59PM +0200, Ulrich Weigand wrote:
> I've finally gotten around to finish my implementation of this.
Thanks for doing this!
> All these are caused by failures to parse the prologues of hand-written
> *ARM* assembler routines in glibc (system call handlers like nanosleep).
> These simply deviate too far from the usual rules (e.g. by intermixing
> stack saving/restoring of registers with conditional branches, or by
> temporarily saving registers into other registers instead of the stack)
> for the ARM prologue parser to be able to handle them.
> It seems to me that there is not much sense in attempting to support
> even this type of code. I guess we should strongly recommend to have
> (at least) glibc debuginfo files installed if you want to debug.
I agree with your conclusion. It's just not worthwhile; either
install debuginfo files, or leave .debug_frame in the stripped