This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Detect 64-bit-ness in PowerPC Book III-E
- From: Yao Qi <yao at codesourcery dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: <anton at samba dot org>, <gdb-patches at sourceware dot org>
- Date: Fri, 19 Dec 2014 16:06:39 +0800
- Subject: Re: [PATCH] Detect 64-bit-ness in PowerPC Book III-E
- Authentication-results: sourceware.org; auth=none
- References: <201412111530 dot sBBFUxsi023697 at d03av02 dot boulder dot ibm dot com>
Ulrich Weigand <uweigand@de.ibm.com> writes:
> Hmm. If it actually is Book III-S, then bit 32 is "reserved", so I'm
> not sure including it in the check is safe.
Yeah, in fact, I borrow such check from strace 4.9.
>
> Anton, what would you suggest a user program to use to safely detect
> whether a ptrace-attached child is 64-bit or not, on either Book III-S
> or Book III-E systems?
Maybe, we can first detect the Book III-S vs. Book III-E, and then
detect 64-bit-ness. However, I go through PowerISA, but don't find a
way to differentiate Book III-S and Book III-E.
>
> In any case, whatever we do, we should do both in native GDB and
> gdbserver.
Agreed.
--
Yao (éå)