From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12446 invoked by alias); 30 Jun 2004 18:53:54 -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 12436 invoked from network); 30 Jun 2004 18:53:54 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 30 Jun 2004 18:53:54 -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 OAA28784 for ; Wed, 30 Jun 2004 14:14:35 -0400 Received: from [10.4.2.2] ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id OAA02071 for ; Wed, 30 Jun 2004 14:53:51 -0400 Message-ID: <40E30C91.1030503@qnx.com> Date: Wed, 30 Jun 2004 20:40:00 -0000 From: Kris Warkentin User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Question for ARM experts Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg00309.txt.bz2 In arm-tdep.c I see that if we get GDB_OSABI_UNKNOWN we assume GDB_OSABI_ARM_APCS. What would the consequences of not doing that be for other arm targets? The problem is, there isn't anything particularily distinct about QNX Neutrino binaries so I've got a generic Neutrino sniffer that basically says, "Am I connected to a Neutrino target? Okay, then let's use the Neutrino ABI stuff." Arm is the only one that falls apart for this because when I return GDB_OSABI_QNXNTO and arm_elf_osabi_sniffer() in arm-tdep.c returns APCS, gdbarch_lookup_osabi() goes, "Argh!! Two OSABIs...*choke*" So here's the thing: if I allow arm_elf_osabi_sniffer to return GDB_OSABI_UNKNOWN in the case of ELFOSABI_ARM, my sniffer works fine. The question is, if we allow the APCS fallback in the case of ELFOSABI_UNKNOWN but not in ELFOSABI_ARM, is that going to break the world? If so, does anyone have any suggestions for how to deal with this? cheers, Kris