From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5707 invoked by alias); 15 Aug 2012 17:24:15 -0000 Received: (qmail 5647 invoked by uid 22791); 15 Aug 2012 17:24:10 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD 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; Wed, 15 Aug 2012 17:23:54 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7FHNsUu026095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 15 Aug 2012 13:23:54 -0400 Received: from host2.jankratochvil.net (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q7FHNniT025625 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 15 Aug 2012 13:23:52 -0400 Date: Wed, 15 Aug 2012 17:24:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: Re: [RFA 4/4 take 2] Improved linker-debugger interface Message-ID: <20120815172346.GA5696@host2.jankratochvil.net> References: <20120719110518.GE16185@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120719110518.GE16185@redhat.com> 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: 2012-08/txt/msg00442.txt.bz2 Hi Gary, (1) with the current setup IIRC the dlmopen()ed libraries are only shown with live process but they cannot be shown when loaded from a core file. This breaks functionality of core files, I believe glibc needs an extension if it currently cannot be done otherwise. (2) solib-svr4.c is current not used by with gdbsrver and its recent linux_qxfer_libraries_svr4. Your testcases is skipped if [is_remote target], with the current general goal to unify linux-nat with gdbserver and drop linux-nat afterwards I do not think we should accept more patches increasing the linux-nat vs. gdbserver gap. The testcase should be specifically compatible with gdbserver. To give the background: solib-svr4.c is more general and it is kept for all possible corner cases, it also supports more OSes than just GNU/Linux. Compared to it linux-low.c can be easier, this is why it is reimplemented and not shared with solib-svr4.c (it could be shared more but it is not). Therefore maybe your extensions on top of it all are not feasible for gdb/common/ but they should be at least reimplemented also for linux-low.c (3) There is some issue we already discussed off-list, in some cases (Fedora Rawhide x86_64 with Fedora patched GDB) it breaks on FAIL: gdb.base/break-dlmopen.exp: info sharedlibrary #5 namespace_update_full(lmid=0x1,debug_base=0x7ffff7ffd0f8,is_initial_ns=0 svr4_read_so_list(lm=0x6020a0,prev_lm=0x0) lm=0x6020a0={next=0x602670,prev=0x0} lm=0x602670={next=0x0,prev=0x0} warning: Corrupted shared library list: 0x6020a0 != 0x0 warning: Probes-based dynamic linker interface failed. Reverting to original interface. Thanks, Jan