[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] gdb



On Sat, 04 Dec 2010 16:06:38 , Vincent Rivière <vincent.riviere@freesbee.fr> wrote:
> Peter Slegg wrote:
> > (gdb) step
> > Single stepping until exit from function main,
> > which has no line number information.
> > __main () at ../../../../libgcc/../gcc/libgcc2.c:2184
> > 2184    ../../../../libgcc/../gcc/libgcc2.c: No such file or directory.
>
> Do "n" (next), not "step".
> GCC inserts a call to __main() at the very beginning of your main(). And
> that function is defined in libgcc.a, usually you don't have the sources.
> If you do "step" you go into __main(), but if you do "n" you stop just af
> ter
> calling __main(), which is what you need.
>
step is what I have normally used with Highwire and it been ok.
I think this is a more fundamental problem:

(gdb) run
Starting program: /i/usr/src/gentool/gentool.app
Breakpoint 1 at 0x22e6986

Breakpoint 1, 0x22e6986 in main ()
(gdb) n
Single stepping until exit from function main,
which has no line number information.

Then it just runs right through. It doesn't seem to matter where
the breaks are set.

Regards,

Peter