Andreas Schwab
Fri Aug 20 09:06:00 GMT 2010

Simon Richter <> 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 Schwab,
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."

More information about the Gdb mailing list