From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3821 invoked by alias); 8 Mar 2010 18:29:06 -0000 Received: (qmail 3812 invoked by uid 22791); 8 Mar 2010 18:29:06 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Mar 2010 18:29:00 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 007332BAB3B; Mon, 8 Mar 2010 13:28:59 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NC5dHBoCEvjU; Mon, 8 Mar 2010 13:28:58 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 7B77A2BAB3A; Mon, 8 Mar 2010 13:28:58 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 3A6D2F5894; Mon, 8 Mar 2010 22:28:40 +0400 (RET) Date: Mon, 08 Mar 2010 18:29:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: gdb-patches@sourceware.org, Daniel Jacobowitz Subject: Re: Automatically replace shared library extensions on Symbian Message-ID: <20100308182840.GI3081@adacore.com> References: <201003051846.23406.pedro@codesourcery.com> <20100308045415.GB3081@adacore.com> <201003081156.00117.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201003081156.00117.pedro@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00321.txt.bz2 > How about this? I extended the comment a bit in gdbarch.sh, avoiding > too much target speficic info there, and described better the symbian > specific case at the callback's call site. Looks GREAT! :) Thank you adding them. Just three little nits I noticed... > +# If non-empty, this is a file extension that will be opened in place > +# of the file extension reported by the shared library list. > +# > +# This is most useful for toolchains that use a post-linker tool, > +# where the names of the files ran on the target differ in extension ^^^ run (to run, ran, run) > +# compared to the names of the files GDB should load for debug info. > +v:const char *:solib_symbols_extension:::::::pstring (gdbarch->solib_symbols_extension) > + /* On this target, the toolchain outputs ELF files, with `sym' for > + filename extension (e.g., `FOO.sym'); these are post-linker > + processed into PE-ish DLLs (e.g., `FOO.dll'), and its these that ^^^ it's > + are actually copied to and ran on the target. Naturally, when ^^^ run > + listing shared libraries, Symbian stubs report the DLL filenames. > + Setting this makes it so that GDB automatically looks for the > + corresponding ELF files on the host's filesystem. */ -- Joel