From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26924 invoked by alias); 11 Feb 2003 20:05:30 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26901 invoked from network); 11 Feb 2003 20:05:30 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 172.16.49.205 with SMTP; 11 Feb 2003 20:05:30 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id OAA11670 for ; Tue, 11 Feb 2003 14:54:32 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id PAA00144 for ; Tue, 11 Feb 2003 15:05:29 -0500 Message-ID: <034301c2d208$ec67eb80$0202040a@catdog> From: "Kris Warkentin" To: Subject: How to know which processor I'm targetting at runtime Date: Tue, 11 Feb 2003 20:05:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-02/txt/msg00190.txt.bz2 I have some ugly code that relies on a define from one of our config/arch/tm*.h files. Essentially we're just doing: #define SOLIB_PROCESSOR [x86|mips|arm....] so that we can do some setup elsewhere. Is there a nice way to get which architecture I'm running at runtime? I'd like to get rid of our tm files if possible. cheers, Kris