This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]