This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: break $function in coff/pe doesn't break exactly before the first statement?
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <pedro_alves at portugalmail dot pt>
- Cc: gdb at sourceware dot org
- Date: Sat, 18 Nov 2006 13:18:58 +0200
- Subject: Re: break $function in coff/pe doesn't break exactly before the first statement?
- References: <455EE79E.6000109@portugalmail.pt>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.