This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: What make the directive run twice?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jason Luo <jasonl at turbolinux dot com dot cn>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 3 Jun 2004 16:44:34 -0400
- Subject: Re: What make the directive run twice?
- References: <40BECE4F.7090002@turbolinux.com.cn>
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