This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: What make the directive run twice?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]