Re: [arm-gnu] gdb problem with library calls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] gdb problem with library calls



On Wednesday 16 November 2005 19:25, Bahadir Balban wrote:
> Hi,
>
>  I compiled the simple program below, with arm-none-eabi-gcc -g -o
> main main.c. (gcc 3.4.3)
>
>  When I start arm-none-eabi-gdb on the program and type commands:
>
>  % target sim
>  % load main
>  % break main
>  % continue

You should probably be using "run" or "start" instead of "continue".
The commands you quote don't work at all for me. Specifically I do:

$ arm-none-eabi-gdb a.out
GNU gdb 6.3.50.20051102-cvs
...
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .init, size 0x18 vma 0x8000
...
Transfer rate: 358912 bits in <1 sec.
(gdb) start
Breakpoint 1 at 0x81d4
Starting program: /home/paul/arm/foo/a.out
0x000081d4 in main ()

My guess is you aren't resetting the simulator between runs, you're just 
jumping back to the start of the program.  This is unlikely to work because 
the previous run will have closed the stdio file descriptors.

Paul