From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28757 invoked by alias); 25 Jul 2006 15:41:20 -0000 Received: (qmail 28749 invoked by uid 22791); 25 Jul 2006 15:41:19 -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 15:41:17 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G5P23-0003RG-8F; Tue, 25 Jul 2006 11:41:15 -0400 Date: Tue, 25 Jul 2006 15:42:00 -0000 From: Daniel Jacobowitz To: Greg Law Cc: gdb@sourceware.org Subject: Re: bfinish writes to random addresses. Message-ID: <20060725154115.GA13191@nevyn.them.org> Mail-Followup-To: Greg Law , gdb@sourceware.org References: <44C63B23.7060306@undo-software.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44C63B23.7060306@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/msg00174.txt.bz2 On Tue, Jul 25, 2006 at 04:39:15PM +0100, Greg Law wrote: > Hi list, > > When doing a 'finish' command when EBP contains bad values such that gdb > gets confused about a function's return address, it writes a breakpoint > into an essentially random point in the inferior's address space. > > Should I report a bug, or do we consider it the user's own stupid fault > if he/she tries to do a 'finish' command when the frame-pointer is invalid? Well, is there anything better that could be done about it? I don't think so. Finish is going to take you back to whatever GDB thinks the previous frame is. Now, of course, GDB shouldn't get confused in the first place. That's always worth filing a bug about, although it may be a case of inadequate debug information or other similar problems out of our control. -- Daniel Jacobowitz CodeSourcery