[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb offset
From: |
Hansen |
Subject: |
Re: gdb offset |
Date: |
Thu, 19 May 2005 10:34:18 +0200 |
"Hansen" <bluesboys@-remove-this-hotmail.com> wrote in message
news:d6fia2$447$1@news.net.uni-c.dk...
> 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.
- gdb offset, Hansen, 2005/05/18
- Re: gdb offset,
Hansen <=