Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <Michael.Snyder@palmsource.com>
To: Sascha <sascha@pasalacqua.de>
Cc: 'Daniel Jacobowitz' <drow@false.org>, gdb@sourceware.org
Subject: Re: Disabling breakpoints does not work if rejected from remote 	stub
Date: Tue, 06 Mar 2007 01:06:00 -0000	[thread overview]
Message-ID: <1173125452.29183.17.camel@localhost.localdomain> (raw)
In-Reply-To: <001501c75a91$8843c910$02b2a8c0@insanenotebook>

On Tue, 2007-02-27 at 18:05 +0100, Sascha wrote:
> Hi
> 
> >Could you try two things for me? 
> 
> - I downloaded the latest snapshot from head (27/02) and the problem still
> exists
> 
> - I logged the MI session with debug remote set to 1
> 
> See attached file.

Looks like several problems, really:

252^running
(gdb) 
&"Sending packet: $Z0,200094,4#45..."
Sending packet: $Z0,200094,4#45...Ack
Packet received: OK
&"Ack\n"
&"Packet received: OK\n"
&"Packet Z0 (software-breakpoint) is supported\n"
&"Sending packet: $Z0,20009c,4#74..."
Packet Z0 (software-breakpoint) is supported
Sending packet: $Z0,20009c,4#74...Ack
Packet received: OK
Sending packet: $Z0,200080,4#40...Ack
Packet received: E11
Warning:
Cannot insert breakpoint 3.
Error accessing memory address 0x200080: (undocumented errno -1).

Here, gdb reports the error as "error accessing memory", which
isn't really the error (a minor point, perhaps).

However, the more serious error is that at this point, the
"run" (or "step") command is aborted, returning to the gdb
prompt, but without removing the breakpoints.  The error handling
code at this point ought to remove all of the breakpoints that
have been inserted.

This is why the handshake state between gdb and your target
is now broken.  You can't insert a third breakpoint on the target, 
because the first two have not been removed.



  reply	other threads:[~2007-03-06  1:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27 11:55 Sascha
2007-02-27 12:52 ` Daniel Jacobowitz
2007-02-27 19:29   ` Sascha
2007-03-06  1:06     ` Michael Snyder [this message]
2007-03-06  7:38       ` Disabling breakpoints does not work if rejected from remotestub Sascha
2007-03-06 19:44         ` 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=1173125452.29183.17.camel@localhost.localdomain \
    --to=michael.snyder@palmsource.com \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=sascha@pasalacqua.de \
    /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