What make the directive run twice?

Daniel Jacobowitz drow@false.org
Thu Jun 3 20:44:00 GMT 2004


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



More information about the Gdb mailing list