From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23947 invoked by alias); 26 Jan 2006 22:44:34 -0000 Received: (qmail 23939 invoked by uid 22791); 26 Jan 2006 22:44:34 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 26 Jan 2006 22:44:33 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F2Fqv-0005FW-5n; Thu, 26 Jan 2006 17:44:29 -0500 Date: Thu, 26 Jan 2006 22:44:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: ngustavson@emacinc.com, gdb-patches@sourceware.org Subject: Re: frame theory, was pointer madness Message-ID: <20060126224429.GA20076@nevyn.them.org> Mail-Followup-To: Mark Kettenis , ngustavson@emacinc.com, gdb-patches@sourceware.org References: <200601231438.26040.ngustavson@emacinc.com> <200601261354.12256.ngustavson@emacinc.com> <200601262121.k0QLLGfw017308@elgar.sibelius.xs4all.nl> <200601261552.46222.ngustavson@emacinc.com> <200601262240.k0QMe7SC026344@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200601262240.k0QMe7SC026344@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00435.txt.bz2 On Thu, Jan 26, 2006 at 11:40:07PM +0100, Mark Kettenis wrote: > To me, it looks like you're connecting to a buggy stub. He's connecting to basically a standard gdbserver, poised at the first instruction of the program. Memory has garbage and/or is invalid - no MMU so reading from garbage memory is a bit more serious than is typical for GDB. The best thing here would be, if the stub can find out from the kernel what constitutes "valid" RAM, to refuse reads to it. Then ignore the ugliness when you type backtrace and don't have a stack yet - it's not real surprising that doesn't work! -- Daniel Jacobowitz CodeSourcery