Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* PT_TEXT_ADDR on ARM
@ 2010-08-20  8:33 Simon Richter
  2010-08-20  9:06 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Richter @ 2010-08-20  8:33 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-20 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-20  8:33 PT_TEXT_ADDR on ARM Simon Richter
2010-08-20  9:06 ` Andreas Schwab
2010-08-20 11:29   ` Simon Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox