From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10741 invoked by alias); 10 Jun 2003 12:21:22 -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 10685 invoked from network); 10 Jun 2003 12:21:21 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 10 Jun 2003 12:21:21 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id IAA19993; Tue, 10 Jun 2003 08:15:19 -0400 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id IAA04210; Tue, 10 Jun 2003 08:21:17 -0400 Message-ID: <047001c32f4a$d31eead0$0202040a@catdog> From: "Kris Warkentin" To: Cc: "Kevin Buettner" , "Gdb@Sources.Redhat.Com" , References: <200306101012.h5AAClK01881@pc960.cambridge.arm.com> Subject: Re: problem with fetch_link_map_offsets Date: Tue, 10 Jun 2003 12:21: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.1165 X-SW-Source: 2003-06/txt/msg00155.txt.bz2 > > Yeah but....a QNX binary is just an ordinary elf binary. There are no > > special sections or magic in there for the sniffer to catch. Hence my > > problem. Perhaps it should be returning unknown so that another sniffer > > (like my one liner) could get it? > > > > NetBSD binaries look like ordinary ELF too, as do Linux. The only way to > resolve this is to arange for the crt0.o file to contain some magic that > GDB can find. Normally this is a special .note section. > > Can you not arrange for QNX binaries to have such a note and then add that. Perhaps. I'll have to talk to some of the folk here. I think it would be really handy to be able to recognize one of our binaries. Thanks for the suggestion. cheers, Kris