This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: async operation


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.

However I am going to suspend asking what happened since my version of
GDB has been modified to accept commands on a socket rather than
directly from the keyboard by substituting the FD for the socket for
stdin.  I added (among other things) the following to main:

  	 gdb_stdout = marks_stdout;
	 gdb_stderr = marks_stdout;
       dr_fd = fdopen(dr_in,"rw" );
       instream = dr_fd;
       reinitialize_event_loop ();

where dr_in is a socket.  Among other things I had to add a reinit to
the event loop to update rl_instream.  These changes will not go into
gdb before they are fully discussed on this forum.

It may be my changes that are causing the problem.

                                       Mark Newman

> -----Original Message-----
> From: gdb-owner@sources.redhat.com
> [mailto:gdb-owner@sources.redhat.com]On Behalf Of Daniel Jacobowitz
> Sent: Tuesday, November 18, 2003 2:13 AM
> To: Mark Newman
> Cc: Andrew Cagney; Newman, Mark (N-Superior Technical Resource Inc);
> gdb@sources.redhat.com
> Subject: Re: async operation
> 
> 
> On Mon, Nov 17, 2003 at 09:33:05PM -0800, Mark Newman wrote:
> > I don't mean to sound dumb but could you clarify what
> > "you can set a hook on `stop'" means?
> 
> Search for hooks in the manual.
> 
> > I see that and am working it now in conjunction with
> > the interrupt command - unless the stop command(?)
> > will do what I am looking for.  GDBserver does not
> > properly respond when in async and an "interrupt" is
> > issued.
> 
> What goes wrong?  It should.  Remember, async is an invention of the
> client - the remote protocol is the same.
> 
> -- 
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer
> 

Attachment: temp.txt
Description: temp.txt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]