From: Stan Shebs <stan@codesourcery.com>
To: Dmitry Smirnov <divis1969@mail.ru>
Cc: gdb@sourceware.org
Subject: Re: THUMB code detection for ADS 1.2 ELF emages
Date: Fri, 20 Jun 2008 10:48:00 -0000 [thread overview]
Message-ID: <485B8AB9.9050806@codesourcery.com> (raw)
In-Reply-To: <E1K9bgC-000LPq-00.divis1969-mail-ru@f180.mail.ru>
Dmitry Smirnov wrote:
> Hi,
>
> I'm trying to use GDB to work with ARM ELF images produced by ADS 1.2 (ARM toolchain, a liitle bit old).
> I can do almost all I want with ARM code. But GDB works incorrectly with THUMB code: I cannot disassemle the code, GDB places breakpoints at incorrect address, stepping with 'ni'.
>
> In GDB source code I've found that it completely ignores some special symbols ($t, $a, $d ...) that ADS places to an ELF file.
>
Dan Jacobowitz added this bit of machinery recently; see
http://sourceware.org/ml/gdb-patches/2008-05/msg00113.html . He points
out that this should be a rare case, only needed if Arm and Thumb code
are mixed within a single file; so if your GDB is having trouble
detecting Thumb code, maybe there is some other problem, perhaps the
toolchain is not marking the executable correctly?
Stan
next prev parent reply other threads:[~2008-06-20 10:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-20 8:09 Dmitry Smirnov
2008-06-20 10:36 ` Daniel Jacobowitz
2008-06-20 10:48 ` Stan Shebs [this message]
2008-06-20 11:25 Dmitry Smirnov
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=485B8AB9.9050806@codesourcery.com \
--to=stan@codesourcery.com \
--cc=divis1969@mail.ru \
--cc=gdb@sourceware.org \
/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