From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68615 invoked by alias); 5 Apr 2016 17:14:37 -0000 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 Received: (qmail 68599 invoked by uid 89); 5 Apr 2016 17:14:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=rom, Hx-languages-length:1288, amiga, metal X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 05 Apr 2016 17:14:35 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 74E94C001270 for ; Tue, 5 Apr 2016 17:14:34 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-59.ams2.redhat.com [10.36.116.59]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u35HEGMs009220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 Apr 2016 13:14:19 -0400 Date: Tue, 05 Apr 2016 17:14:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org, Gary Benson Subject: Re: [patch] Suggest newer gdbserver if it has no qXfer:exec-file:read Message-ID: <20160405171416.GA4554@host1.jankratochvil.net> References: <20160319201842.GA16540@host1.jankratochvil.net> <56F13963.9040204@redhat.com> <20160322131604.GA24312@host1.jankratochvil.net> <56F14F1E.5010606@redhat.com> <20160323211547.GA17400@host1.jankratochvil.net> <5703E885.3090309@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5703E885.3090309@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00092.txt.bz2 On Tue, 05 Apr 2016 18:32:05 +0200, Pedro Alves wrote: > On 03/23/2016 09:15 PM, Jan Kratochvil wrote: > > Sending packet: $qXfer:exec-file:read:67:0,fff#f7...Packet received: l/root/redhat/threadit > > Reading /root/redhat/threadit from remote target... > > Sending packet: $vFile:open:2f726f6f742f7265646861742f7468726561646974,0,0#7e...Packet received: F5 > > Sending packet: $vFile:pread:5,3fff,0#98...Packet received: F27f8;\177ELF\002\001\001\000 > > > > Just stating that, nothing interesting. > > That'd assume that there's a structured elf on the target, while on bare > metal, you don't have that; no sections, no segments, etc. Nothing other > than unstructured raw memory, much like what the "dump memory" would > give you. Yes, reading raw memory without structure is not useful as an exec-file (I see now gdbserver protocol "qXfer:exec-file:read:" maps to the GDB command "file" and not to the GDB command "exec-file") which serves mostly as a symbol file. But for example vDSO is a memory readable ELF file. I remember some other ROMs which also had structured format, parseable by BFD but not really containing a filesystem. Amiga ROM contained a list of libraries, each one with some PLTs etc. Jan