Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Efim Monyak <ymonyak@lipowsky.de>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sources.redhat.com
Subject: Re: restart for remote target
Date: Tue, 25 Jul 2006 16:24:00 -0000	[thread overview]
Message-ID: <44C644A7.4000106@lipowsky.de> (raw)
In-Reply-To: <20060725154543.GA13313@nevyn.them.org>

Daniel Jacobowitz schrieb:
> On Tue, Jul 25, 2006 at 05:42:14PM +0200, Efim Monyak wrote:
>   
>> Hi all,
>>
>> I need an restart command for remote target. Set Program Counter to i.e. 
>> 0 is not an
>> option because interrupts.
>> I implemented it as user-defined command but all breakpoints must be 
>> delete before load.
>> After load all breakpoints are lost.
>> Is it possible to save breakpoint data in order restore it after 
>> application reload?
>>     
>
> Sorry, but your explanation omits too much; we need more information.
> Load should not remove breakpoints.
>
> Would it help you to connect using 'target extended-remote', and then
> use "run" to restart the target?  That sends an 'R' packet to the stub,
> which can do whatever it needs to.
>
>   
You are right.
I delete all breakpoints before load the applications again because my 
Hardware supports only two
breakpoints. In other case I receive error from GDB. The load is 
multistep. In one of steps I must set
an breakpoint to particular address and only one way I found to put it 
away is command delete all breakpoints.
As I see no command deletes breakpoint on address. Use breakpoint to 
source line is not very good on this place.

It is not possible for stub restart the application. They are often 
problem if a remote target is used.
As I wrote set PC to start address works not properly if i.e. interrupts 
are enabled.
If application runs from RAM it is lost after Hardware reset.

The only handy way I see is to reload application set all used 
breakpoints and start it again.



  reply	other threads:[~2006-07-25 16:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-25 15:45 Efim Monyak
2006-07-25 16:01 ` Daniel Jacobowitz
2006-07-25 16:24   ` Efim Monyak [this message]
2006-07-25 16:28     ` Daniel Jacobowitz
2006-07-25 17:48       ` Efim Monyak
2006-07-25 18:22         ` Daniel Jacobowitz
2006-07-26 13:05           ` Efim Monyak
2006-07-26 14:10             ` Daniel Jacobowitz
2006-07-27 13:34       ` Efim Monyak
2006-07-28 15:37         ` 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=44C644A7.4000106@lipowsky.de \
    --to=ymonyak@lipowsky.de \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.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