Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@redhat.com>
To: Simon Richter <Simon.Richter@hogyros.de>
Cc: gdb@sourceware.org
Subject: Re: PT_TEXT_ADDR on ARM
Date: Fri, 20 Aug 2010 09:06:00 -0000	[thread overview]
Message-ID: <m3y6c17iwz.fsf@hase.home> (raw)
In-Reply-To: <20100820083257.GA3902@richter> (Simon Richter's message of "Fri,	20 Aug 2010 10:32:57 +0200")

Simon Richter <Simon.Richter@hogyros.de> writes:

> 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?

I wonder how 0x10000 can actually work.  I'm pretty sure that
sizeof(struct user) < 0x10000, so this would always return EIO
(according to arch/arm/kernel/ptrace.c:ptrace_read_user).

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."


  reply	other threads:[~2010-08-20  9:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-20  8:33 Simon Richter
2010-08-20  9:06 ` Andreas Schwab [this message]
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=m3y6c17iwz.fsf@hase.home \
    --to=schwab@redhat.com \
    --cc=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