public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: gdb@sourceware.org
Cc: rearnsha@arm.com, dan@codesourcery.com
Subject: ARM prologue parsing support for Thumb-2 instructions?
Date: Fri, 16 Jul 2010 17:03:00 -0000	[thread overview]
Message-ID: <201007161703.o6GH3XoP011062@d12av02.megacenter.de.ibm.com> (raw)

Hello,

in testing GDB on an armv7l-linux-gnueabi board running Ubuntu Maverick
I noticed serious problems with getting backtraces out of system libraries.

Looking into this, it turns out that arm_analyze_prologue appears to have
no support at all for decoding Thumb-2 instructions.  (There is some
support for Thumb-2 in arm_skip_prologue, but not for unwinding.)

Since Thumb-2 is the default code generation option on this system, this 
makes it just about impossible to backtrace out of any code that does not
come with debug information.

Now I was wondering whether I'm missing something here ...  Is this really
just something that's simply missing?  If so, do you know whether anybody
is currently working on adding this support?  Otherwise, I could give it
a try.

Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com

             reply	other threads:[~2010-07-16 17:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-16 17:03 Ulrich Weigand [this message]
2010-07-16 19:37 ` Daniel Jacobowitz
2010-07-19  8:51 ` Matthew Gretton-Dann
2010-07-19 10:59   ` Ulrich Weigand
2010-07-19 14:10     ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201007161703.o6GH3XoP011062@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=dan@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=rearnsha@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).