From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21649 invoked by alias); 21 Jul 2010 19:08:24 -0000 Received: (qmail 21640 invoked by uid 22791); 21 Jul 2010 19:08:23 -0000 X-SWARE-Spam-Status: No, hits=-2.0 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; Wed, 21 Jul 2010 19:08:19 +0000 Received: (qmail 9944 invoked from network); 21 Jul 2010 19:08:17 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 21 Jul 2010 19:08:17 -0000 From: Pedro Alves To: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: Switch shared library default backend to solib-target.c Date: Wed, 21 Jul 2010 19:08:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.31-11-rt; KDE/4.4.2; x86_64; ; ) References: <201006151858.58007.pedro@codesourcery.com> <201006152137.10649.pedro@codesourcery.com> In-Reply-To: <201006152137.10649.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007212008.15240.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-07/txt/msg00335.txt.bz2 On Tuesday 15 June 2010 21:37:10, Pedro Alves wrote: > 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. Is this okay? (The patch below is against the 7.2 branch.) -- Pedro Alves 2010-07-21 Pedro Alves * NEWS: Mention target reported shared libraries support by default. --- gdb/NEWS | 8 ++++++++ 1 file changed, 8 insertions(+) Index: src/gdb/NEWS =================================================================== --- src.orig/gdb/NEWS 2010-07-21 19:15:34.000000000 +0100 +++ src/gdb/NEWS 2010-07-21 20:04:09.000000000 +0100 @@ -3,6 +3,14 @@ *** Changes since GDB 7.1 +* Shared library support for remote targets by default + + When GDB is configured for a generic, non-OS specific target, like + for example, --target=arm-eabi or one of the many *-*-elf targets, + GDB now queries remote stubs for loaded shared libraries using the + `qXfer:libraries:read' packet. Previously, shared library support + was always disabled for such configurations. + * C++ Improvements: ** Argument Dependent Lookup (ADL)