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: Thu, 27 Jul 2006 13:34:00 -0000	[thread overview]
Message-ID: <44C8A561.3060304@lipowsky.de> (raw)
In-Reply-To: <20060725162649.GA14797@nevyn.them.org>

Daniel Jacobowitz schrieb:
> On Tue, Jul 25, 2006 at 06:19:51PM +0200, Efim Monyak wrote:
>   
>> 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.
>>     
>
> "delete *0x3000000" should work.
>
> Also, it sounds like you want "disable", not "delete".
>
>   

Yes, is where a possibility to save breakpoint state (number, enable or 
disable) before disable
breakpoints and apply it after enable?
Because after "disable" command the information about breakpoint state 
is lost. They all are disabled.
I must do it by GDB script.
Or is it possible to define an array as long as maximal possible number 
of breakpoints?
I don't found a maximal possible value for $bpnum.

>> 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.
>>     
>
> In many cases the stub can handle all of this automatically,
> manually disabling interrupts et cetera.
>
>   

stub receives command "insert breakpoint" for all enabled breakpoints 
before program step or continue and
"remove breakpoint" after program stop.

stub don't know breakpoints to be used on the next program step or continue.





  parent reply	other threads:[~2006-07-27 11:37 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
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 [this message]
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=44C8A561.3060304@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