From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7641 invoked by alias); 28 Sep 2012 10:58:31 -0000 Received: (qmail 7632 invoked by uid 22791); 28 Sep 2012 10:58:30 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,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; Fri, 28 Sep 2012 10:58:24 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8SAwN7f002039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 28 Sep 2012 06:58:24 -0400 Received: from host2.jankratochvil.net (ovpn-116-94.ams2.redhat.com [10.36.116.94]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8SAwKjm018634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 28 Sep 2012 06:58:22 -0400 Date: Fri, 28 Sep 2012 10:58:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: Re: [RFA 4/4 take 2] Improved linker-debugger interface Message-ID: <20120928105819.GA26150@host2.jankratochvil.net> References: <20120719110518.GE16185@redhat.com> <20120815172346.GA5696@host2.jankratochvil.net> <20120919094933.GA3023@redhat.com> <20120919111422.GA17988@host2.jankratochvil.net> <20120919150622.GA7647@redhat.com> <20120919151255.GA5436@host2.jankratochvil.net> <20120921123555.GA6449@redhat.com> <20120921144543.GA23658@host2.jankratochvil.net> <20120928105145.GA3465@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120928105145.GA3465@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-09/txt/msg00678.txt.bz2 On Fri, 28 Sep 2012 12:51:45 +0200, Gary Benson wrote: > dlmopen support requires the local cache that incremental updating > uses, because when you stop to update a namespace's so_list you can > only see the address of that namespace in the inferior. The other > namespace's so_lists are fetched from the cache, so either gdb or > gdbserver will have to maintain a cache somewhere. I'm tempted to > retain the cache in gdb, and have gdbserver send namespace updates. I believe it is needed to resolve the dlmopen support from core files. Otherwise this new code may be based on wrong expectations. If you are not going to implement dlmopen from core files please drop the dlmopen support. > I'm trying to understand the existing interface between gdb and > gdbserver. Does gdb request a library list and gdbserver send one, Yes. > or does gdbserver recognise the stop and send one, and gdb assumes > it's been sent one and try to read it? No. GDB still places the breakpoint (formerly at _dl_debug_state) and when it is hit gdb->gdbserver sends the request packet: $qXfer:libraries-svr4:read::0,fff# Thanks, Jan