This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: PT_TEXT_ADDR on ARM
- From: Andreas Schwab <schwab at redhat dot com>
- To: Simon Richter <Simon dot Richter at hogyros dot de>
- Cc: gdb at sourceware dot org
- Date: Fri, 20 Aug 2010 11:06:04 +0200
- Subject: Re: PT_TEXT_ADDR on ARM
- References: <20100820083257.GA3902@richter>
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."