Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Chad Phillips <jcphillips@yahoo.com>
Cc: gdb@sources.redhat.com
Subject: Re: GDB requires software breakpoints?
Date: Tue, 28 Jun 2005 14:23:00 -0000	[thread overview]
Message-ID: <20050628142311.GA30859@nevyn.them.org> (raw)
In-Reply-To: <42C15C66.6070600@yahoo.com>

On Tue, Jun 28, 2005 at 10:19:18AM -0400, Chad Phillips wrote:
> I took the advice of having the software breakpoint requests actually 
> set hardware breakpoints.  However, the problem of gdb insisting on 
> setting a software breakpoint at main has now been compounded by gdb 
> issueing a continue command after the software breakpoint is 
> successfully set.  It is as if gdb thinks it must break at main before 
> it can go on to do anything else.
> 
> In the following session, the target has been stopped in main before gdb 
> starts.  Then gdb attaches to the target.  A step command is then issued 
> to gdb.  The step occurs correctly, but at the end of the step, gdb sets 
> a breakpoint at main and then issues a continue command.  Any 
> suggestions for getting around this?

Not without more information; if you're going to continue working on a
GDB port, you really need to get used to debugging GDB.  Figure out why
GDB is issuing a continue command instead of another step.  Don't worry
about the breakpoint at main; it's not actually relevant.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


      reply	other threads:[~2005-06-28 14:23 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
2005-06-28 14:19 ` Chad Phillips
2005-06-28 14:23   ` Daniel Jacobowitz [this message]

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=20050628142311.GA30859@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