From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13738 invoked by alias); 17 Dec 2007 22:55:09 -0000 Received: (qmail 13728 invoked by uid 22791); 17 Dec 2007 22:55:08 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Dec 2007 22:55:01 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A047698129; Mon, 17 Dec 2007 22:54:59 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 8A0E398100; Mon, 17 Dec 2007 22:54:57 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J4OrQ-0006It-3b; Mon, 17 Dec 2007 17:54:56 -0500 Date: Mon, 17 Dec 2007 22:55:00 -0000 From: Daniel Jacobowitz To: Sergei Poselenov Cc: gdb@sourceware.org Subject: Re: [rfc / remote protocol] ELF segment based qOffsets Message-ID: <20071217225456.GA24192@caradoc.them.org> Mail-Followup-To: Sergei Poselenov , gdb@sourceware.org References: <47625A95.7080203@emcraft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47625A95.7080203@emcraft.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00124.txt.bz2 On Fri, Dec 14, 2007 at 01:27:33PM +0300, Sergei Poselenov wrote: > You see, the warnings are caused by the fact that the segment 01 has > address/size values which wraps to 0 in the following 'if' condition > introduced by the $subj in elfread.c, elf_symfile_segments(): > ... > && vma < segments[j]->p_vaddr + segments[j]->p_memsz) Drat. Yes, this just seems like a bug. I'll try to fix it later. > The place above is trivial to fix, but I wonder will be any > other consequences to the remote debugging of such kind of > images? (I can't try this at the moment) I don't think there should be any problems. There would be a little trouble debugging code from those sections if the image was relocated (qOffsets response), but yours shouldn't be; it goes at the address in the ELF file. -- Daniel Jacobowitz CodeSourcery