From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23579 invoked by alias); 15 Jun 2010 20:37:22 -0000 Received: (qmail 23571 invoked by uid 22791); 15 Jun 2010 20:37:21 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Jun 2010 20:37:17 +0000 Received: (qmail 2790 invoked from network); 15 Jun 2010 20:37:15 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Jun 2010 20:37:15 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: Switch shared library default backend to solib-target.c Date: Tue, 15 Jun 2010 20:37:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32-22-generic; KDE/4.4.2; x86_64; ; ) References: <201006151858.58007.pedro@codesourcery.com> In-Reply-To: <201006151858.58007.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006152137.10649.pedro@codesourcery.com> X-IsSubscribed: yes 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-06/txt/msg00355.txt.bz2 On Tuesday 15 June 2010 18:58:57, Pedro Alves wrote: > This patch changes GDB to default to enabling target > reported shared libraries. I've applied it. > > It does that by using solib-target.c by default, instead of > solib-null.c. The patch actually gets rid of solib-null.c entirely. > This means that for example, a generic elf gdb build (e.g., arm-eabi, without a > default OSABI), can be used to debug random RTOSs that report loaded > shared libraries using the "qXfer:libraries:read" remote protocol > packet. > > Since solib-target.c behaves exactly the same as solib-null.c > when the target doesn't implement the TARGET_OBJECT_LIBRARIES > xfer, this is always either a win, or a nop. I thought about this a bit and realized that it probably warrants a NEWS entry. I'll post one soon. -- Pedro Alves