From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14335 invoked by alias); 15 Jun 2010 17:59:13 -0000 Received: (qmail 14318 invoked by uid 22791); 15 Jun 2010 17:59:12 -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 17:59:05 +0000 Received: (qmail 31044 invoked from network); 15 Jun 2010 17:59:03 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Jun 2010 17:59:03 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Switch shared library default backend to solib-target.c Date: Tue, 15 Jun 2010 17:59:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32-22-generic; KDE/4.4.2; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201006151858.58007.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/msg00346.txt.bz2 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. -- Pedro Alves