From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23236 invoked by alias); 25 Jul 2006 16:28:30 -0000 Received: (qmail 23228 invoked by uid 22791); 25 Jul 2006 16:28:29 -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; Tue, 25 Jul 2006 16:28:28 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G5Pld-0003sN-GG; Tue, 25 Jul 2006 12:28:21 -0400 Date: Tue, 25 Jul 2006 16:53:00 -0000 From: Daniel Jacobowitz To: Greg Law Cc: gdb@sourceware.org Subject: Re: bfinish writes to random addresses. Message-ID: <20060725162821.GB14797@nevyn.them.org> Mail-Followup-To: Greg Law , gdb@sourceware.org References: <44C63B23.7060306@undo-software.com> <20060725154115.GA13191@nevyn.them.org> <44C6405A.50502@undo-software.com> <20060725160914.GA14110@nevyn.them.org> <44C645C0.1050409@undo-software.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44C645C0.1050409@undo-software.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00182.txt.bz2 On Tue, Jul 25, 2006 at 05:24:32PM +0100, Greg Law wrote: > >Warning when returning from something with a symbol to something > >without a symbol is an interesting suggestion. Does anyone else have > >comments? Should this warn? > > > >(gdb) bt > >#0 foo() > >#1 0x4000000 in ??? > >(gdb) finish > > > > I was actually suggesting an error rather than a warning. In this case, > it seems that writing into 0x40000000 is almost certainly not what the > user wants gdb to be doing. Surprisingly often it is. We need to be sparing with errors. -- Daniel Jacobowitz CodeSourcery