From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31414 invoked by alias); 8 Aug 2011 18:36:34 -0000 Received: (qmail 31312 invoked by uid 22791); 8 Aug 2011 18:36:33 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Aug 2011 18:36:17 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p78IaGrW026865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 8 Aug 2011 14:36:16 -0400 Received: from host1.jankratochvil.net (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p78IaEPO000362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Aug 2011 14:36:16 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p78IaDmi032608; Mon, 8 Aug 2011 20:36:13 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p78IaDj6032606; Mon, 8 Aug 2011 20:36:13 +0200 Date: Mon, 08 Aug 2011 18:36:00 -0000 From: Jan Kratochvil To: Paul Pluzhnikov Cc: gdb-patches@sourceware.org Subject: Re: [patch] Implement qXfer:libraries for Linux/gdbserver [Was: Re: [RFC] Make target_read_string faster over high-latency links.] Message-ID: <20110808183613.GA31998@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-08/txt/msg00150.txt.bz2 On Fri, 05 Aug 2011 20:10:09 +0200, Paul Pluzhnikov wrote: > Moving solib-svr4.c to gdb/common doesn't appear necessary: the parts > that I would have used in gdbserver/linux-low.c are quite small, and not > easily re-usable. GDB could reuse solib-target.c and split solib-svr4.c to the small part getting the library list - providing it for UNIX *-nat.c files as TARGET_OBJECT_LIBRARIES - and the other UNIX code useful in both local and remote cases there. It would make libexpat mandatory even for the linux-nat.c usage so libexpat could be bundler into the sourceware tree. The same way all_dlls->dll_info could be renamed and reused on the server side even for UNIX, that would be easier. I do not say it would say LoC but it would be more clean, currently there would be two isolated producer + consumer pairs of the same protocol. Sure it may not be so easy as it sounds, I have not tried it. Thanks, Jan