From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6080 invoked by alias); 15 Jan 2003 14:55:12 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6073 invoked from network); 15 Jan 2003 14:55:11 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 209.249.29.67 with SMTP; 15 Jan 2003 14:55:11 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18YqpK-0002uG-00 for ; Wed, 15 Jan 2003 10:55:42 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18Yox6-0003yq-00 for ; Wed, 15 Jan 2003 09:55:36 -0500 Date: Wed, 15 Jan 2003 14:55:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: z8k simulator broken Message-ID: <20030115145536.GA15204@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20030115042818.GA17532@nevyn.them.org> <20030115044545.GC943@bubble.sa.bigpond.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030115044545.GC943@bubble.sa.bigpond.net.au> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00258.txt.bz2 On Wed, Jan 15, 2003 at 03:15:45PM +1030, Alan Modra wrote: > On Tue, Jan 14, 2003 at 11:28:18PM -0500, Daniel Jacobowitz wrote: > > Did you ever get a chance to look at the z8k sim problem? > > No, I didn't. Andrew told me that it wasn't that important, and for me > to go and fix something else. Haven't done the "something else", > either. :) Knowing what I changed, your patch looks good to me. For the curious (why would you be curious? I don't know. I don't even know why I started doing this!) I don't know if this simulator was ever able to run GDB tests or simple newlib binaries but my guess is not recently. A z8002 binary (gdb.base/break) has a .text section of size 0xeb24 or so. The heap is 0x5000, the stack is 0x1000, and AFAICT a z8002 has only 0x10000 memory. A z8001 has much more memory available but only in 64k segments, and .text is: 0 .text 00019a94 00000000 00000000 00000120 2**1 CONTENTS, ALLOC, LOAD, CODE i.e. much more than the one segment it can use. I was trying to multi-arch the z8k on a lark, but it's not enough of a lark to try to get around _that_. Let it die. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer