Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Newman <markn_46@yahoo.com>
To: Elena Zannoni <ezannoni@redhat.com>,
	"Newman,
	Mark \(N-Superior Technical Resource Inc\)"
	<mark.newman@lmco.com>
Cc: Mark Newman <markn_46@yahoo.com>, gdb@sources.redhat.com
Subject: RE: async operation
Date: Thu, 04 Dec 2003 22:09:00 -0000	[thread overview]
Message-ID: <20031204220900.11079.qmail@web13802.mail.yahoo.com> (raw)
In-Reply-To: <16335.41122.634794.412421@localhost.redhat.com>

I did fix this.  If you look at the patch I put in you
will see a reference to ASYNC_WAIT.  When this bit is
set (as it will be for "interrupt" and "quit"} gdb
waits for a response from gdbserver when in async.

This manner of "fixing" the problem should go away
when the select in event_top, etc is combined with the
select fr the remote target.

This set of changes was designed to be under 20 lines.

                           Mark

--- Elena Zannoni <ezannoni@redhat.com> wrote:
> Newman, Mark (N-Superior Technical Resource Inc)
> writes:
>  > IMHO async is not an invention of the client but
> the manner in which gdb
>  > controls the client. ;-)
>  > 
>  > I am attaching a gdb output with remote_debug
> set.  In this instance the
>  > sequence
>  > 
>  > > interrupt
>  > > cont &
>  > 
>  > worked once but did not work the second time.
> 
> [...]
>  > 
>  > It may be my changes that are causing the
> problem.
>  
> Can you try on a gdb w/o your modifications?
> 
> 
>  > 
>  > Program received signal SIGINT, Interrupt.
>  > Sending packet: $M4000acb0,1:55#68...Ack
>  > Packet received: ENN
>  > Sending packet: $M4000acb0,1:55#68...Ack
>  > Packet received: ENN
>  > Sending packet: $mbffff830,4#62...Ack
>  > Packet received: 55320000
>  > Sending packet: $mbffff834,4#66...Ack
>  > Packet received: 55320000
>  > 0x080483f7 in main (argc=12885, argv=0x3255) at
> main.c:52
>  > 52      while (j < 1000000) {
> 
> I assume you said continue here?
> 
>  > 
>  > Sending packet: $c#63...Ack
>  > 
>  > remote_stop called
> 
> Hmm do you see any output that says that
> remote_interrupt has been
> called as well? I wonder if the signal handlers are
> screwed up.
> 
>  > 
>  > Sending packet: $c#63...Packet instead of Ack,
> ignoring it
> 
> gdb keeps issuing the continue command for some
> reason. maybe it
> hasn't realized that the target is actually running.
> 
> 
> elena
> 


  reply	other threads:[~2003-12-04 22:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-18 15:50 Newman, Mark (N-Superior Technical Resource Inc)
2003-11-18 15:55 ` Daniel Jacobowitz
2003-12-04 21:01 ` Elena Zannoni
2003-12-04 22:09   ` Mark Newman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-25 16:07 Newman, Mark (N-Superior Technical Resource Inc)
2003-11-17 17:30 Newman, Mark (N-Superior Technical Resource Inc)
2003-11-18  3:56 ` Andrew Cagney
2003-11-18  5:33   ` Mark Newman
2003-11-18  7:12     ` Daniel Jacobowitz
2003-11-18 14:57     ` Andrew Cagney
2003-11-14 19:30 Newman, Mark (N-Superior Technical Resource Inc)

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=20031204220900.11079.qmail@web13802.mail.yahoo.com \
    --to=markn_46@yahoo.com \
    --cc=ezannoni@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=mark.newman@lmco.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