From: Daniel Jacobowitz <drow@false.org>
To: Chad Phillips <jcphillips@yahoo.com>
Cc: gdb@sources.redhat.com
Subject: Re: GDB requires software breakpoints?
Date: Sat, 25 Jun 2005 04:32:00 -0000 [thread overview]
Message-ID: <20050625043254.GA27884@nevyn.them.org> (raw)
In-Reply-To: <42BC6F5D.1080506@yahoo.com>
On Fri, Jun 24, 2005 at 04:38:53PM -0400, Chad Phillips wrote:
> Problem 1:
> After attaching to the target which is stopped in main, I issue the step
> command. The target correctly steps to the next source line. At the
> end of the stepping process, GDB tries to set a breakpoint at main.
> Using 'info break' replies "No breakpoints or watchpoints."
>
> First: How can I prevent it from trying to do this?
It doesn't in general. Main is special, if you don't have a
recognizable dynamic loader.
> Second: It attempt to set a software breakpoint, which is not supported
> by the stub. Then it tries to write a software breakpoint (instruction
> 0x0000) to memory at the start of main, which fails since the stub
> cannot write to flash. Why is it doing this if the stub has already
> indicated that software breakpoints are not supported?
Try just making the software breakpoint request set a hardware
breakpoint.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-06-25 4:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 20:40 Chad Phillips
2005-06-25 4:32 ` Daniel Jacobowitz [this message]
2005-06-28 14:19 ` Chad Phillips
2005-06-28 14:23 ` Daniel Jacobowitz
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=20050625043254.GA27884@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=jcphillips@yahoo.com \
/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