From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27071 invoked by alias); 3 Jun 2004 20:44:35 -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 27064 invoked from network); 3 Jun 2004 20:44:35 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 3 Jun 2004 20:44:35 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BVz4k-0005ud-6X; Thu, 03 Jun 2004 16:44:34 -0400 Date: Thu, 03 Jun 2004 20:44:00 -0000 From: Daniel Jacobowitz To: Jason Luo Cc: gdb@sources.redhat.com Subject: Re: What make the directive run twice? Message-ID: <20040603204433.GA22683@nevyn.them.org> Mail-Followup-To: Jason Luo , gdb@sources.redhat.com References: <40BECE4F.7090002@turbolinux.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40BECE4F.7090002@turbolinux.com.cn> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-06/txt/msg00023.txt.bz2 On Thu, Jun 03, 2004 at 03:07:59PM +0800, Jason Luo wrote: > Hi all, > > I use gdb 6.1 to debug Grub 0.94.When I debug the function check_device > in lib/device.c,I found that the fopen directive was run twice. It wasn't run twice; it appears in the step output twice. This is common when debugging optimized code; part of the function call occurs before the previous line and part after. -- Daniel Jacobowitz