This is the mail archive of the gdb@sourceware.org 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: break $function in coff/pe doesn't break exactly before the first statement?


> Date: Sat, 18 Nov 2006 10:59:42 +0000
> From: Pedro Alves <pedro_alves@portugalmail.pt>
> 
> Breakpoint 1, main () at main.c:4
> 4       {
> (gdb)
> 
> While on i686-linux, the breakpoint stops at:
> 5  printf ("hello world!\n");
> 
> So on coff targets, an extra 'next' is required to get to the first 
> statement of the function.

I can confirm that I see the same with MinGW and GDB 6.3.

However, for the record, please tell what versions of GCC you used on
both platforms.  I used GCC 3.3.5 on GNU/Linux and the MinGW port of
GCC 3.4.2 on Windows.


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