|
Email lists >
GDB GNU Project debugger >
Re: gdb for AT91SAM7 >
Re: gdb for AT91SAM7
Re: gdb for AT91SAM7
This post if a part of this thread
|
2008-05-14 18:38:58 |
|
|
Re: gdb for AT91SAM7
|
Hello.
thanks for feedback.
2008/5/14 Daniel Jacobowitz <drow false.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
|
|
|
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|