Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Roman Mashak" <romez777@gmail.com>
To: "Roman Mashak" <romez777@gmail.com>, gdb@sourceware.org
Subject: Re: gdb for AT91SAM7
Date: Wed, 14 May 2008 23:39:00 -0000	[thread overview]
Message-ID: <40a670230805141638m7c6474a5kd60b241c9aaa47f3@mail.gmail.com> (raw)
In-Reply-To: <20080514113929.GA5721@caradoc.them.org>

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


  reply	other threads:[~2008-05-14 23:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-14  7:43 Roman Mashak
2008-05-14 11:39 ` Daniel Jacobowitz
2008-05-14 23:39   ` Roman Mashak [this message]
2008-05-14 18:13 ` Michael Snyder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40a670230805141638m7c6474a5kd60b241c9aaa47f3@mail.gmail.com \
    --to=romez777@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox