From: Simon Richter <Simon.Richter@hogyros.de>
To: gdb@sourceware.org
Subject: PT_TEXT_ADDR on ARM
Date: Fri, 20 Aug 2010 08:33:00 -0000 [thread overview]
Message-ID: <20100820083257.GA3902@richter> (raw)
Hi,
I'm a bit unsure on how to proceed here: ARM has two different
definitions for PT_TEXT_ADDR, "49*4" in 2.4 uClinux and "0x10000" in
current Linux, which appears to be used on systems without a MMU as
well. The former definition "emulates" the behaviour of the Coldfire
port, and I've made a working gdbserver for such a system by simply
enabling the #ifdef'd code in linux-low.c, however that will most likely
fail on more recent kernels.
I'd like to prepare a patch that ideally fixes both 2.4 uClinux and 2.6
uClinux (normal Linux doesn't really need the offsets). Should I
a) check the kernel version
b) try 0x10000 first, if it returns zero, use the value from 0xc4
c) use 0x10000 only?
Simon
next reply other threads:[~2010-08-20 8:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-20 8:33 Simon Richter [this message]
2010-08-20 9:06 ` Andreas Schwab
2010-08-20 11:29 ` Simon Richter
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=20100820083257.GA3902@richter \
--to=simon.richter@hogyros.de \
--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