From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John David Anglin" To: gdb-patches@sources.redhat.com Cc: randolph@tausq.org, brobecker@gnat.com Subject: Re: [patch/rfa] Signal trampoline unwinder for hppa-hpux Date: Sat, 22 May 2004 18:30:00 -0000 Message-id: <200405221830.i4MIUJ6s001692@hiauly1.hia.nrc.ca> X-SW-Source: 2004-05/msg00666.html > > 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)