"Hansen" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi everybody
>
> I know that this isn't the gdb group, but since that one, seemed kind of 
> dead, I'll try in here.
>
> I'm using the arm-elf-gdb to debug a program for a LPC2138, but when I 
> start debugging and tell gdb to set a breakpoint at main, it sets the 
> breakpoint at line 13 in the main.cpp which is the 3. instruction.
>
> I've used the -gdwarf-2 and the -ggdb options with the same results.
>
> Anyone know what causes this?

I found out that it was the -ggdb combined with -O2 that caused the 
problems. With -O and without it seems to be running ok. 


_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to