This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfa] Signal trampoline unwinder for hppa-hpux
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gdb-patches at sources dot redhat dot com
- Cc: randolph at tausq dot org, brobecker at gnat dot com
- Date: Sat, 22 May 2004 14:30:18 -0400 (EDT)
- Subject: Re: [patch/rfa] Signal trampoline unwinder for hppa-hpux
> > How can you tell whether a kernel is 32bits or not?
>
> Just FYI, I just found the answer to my question:
>
> % getconf KERNEL_BITS
> Will tell you which kernel you are running (32/64).
>
> Check the getconf and sysconf man pages... We run a 64bit kernel.
This only works under hpux 11. See config.guess. It sets the machine
string to the following:
hppa2.0n 32-bit host kernel
hppa2.0w 64-bit host kernel
hppa2.0 HP-UX 10.20 host kernel
I believe that 10.20 only supported narrow PA 2.0 kernels. So, I am
not sure that the distinction between hppa2.0 and hppa2.0n is useful.
If config.guess finds a 64-bit kernel, it checks CC to see if it
generates code for the 64-bit runtime and sets the machine string
to hppa64 if it does.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)