This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Detect 64-bit-ness in PowerPC Book III-E


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]