List Info

Thread: Re: gdb for AT91SAM7




Re: gdb for AT91SAM7
user name
2008-05-14 18:38:58
Hello.

thanks for feedback.

2008/5/14 Daniel Jacobowitz <drowfalse.org>:
> On Wed, May 14, 2008 at 12:42:46AM -0700, Roman Mashak
wrote:
>> #arm-elf-gdb main.elf
>> #target remote localhost:2331
>> #break *0x100000
>> #continue
>> Continuing.
>> ...
>
> Is the application already loaded or in flash?  And is
the PC already
> pointing at 0x100000?  You have to get it pointing to
there somehow.

The application is in flash before GDB runs. I checked PC
value right
after GDB has started and it's not 0x100000, it varies with
every
start, for example 0x10009a0, next it's 0x0.

Should I set PC value in the .gdbinit:

set $pc = 0x100000

>
> If the PC is already 0x100000 when you say continue,
GDB assumes
> you're trying to continue, not stop at the current
location.
>

-- 
Roman

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )