This is the mail archive of the gdb-patches@sourceware.org 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: RFC: Introduce remote console for CLI interpreter via telnet


> -----Original Message-----
> From: Tom Tromey [mailto:tromey@redhat.com] 
> Sent: Friday, December 02, 2011 4:06 PM
> To: Marc Khouzam
> Cc: 'Stan Shebs'; 'gdb-patches@sourceware.org'
> Subject: Re: RFC: Introduce remote console for CLI 
> interpreter via telnet
> 
> >>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:
> 
> Tom> I don't think it will do completion or history.  It doesn't 
> Tom> use readline.
> 
> Marc> That is too bad.  I will have to try it out and figure
> Marc> out what is missing.
> 
> I think it isn't easily possible.  Readline really wants a 
> tty, but this
> is just a plain socket connection.

Eclipse does provide a pseudo-tty.  In fact, there is also
a full-featured terminal that allows me to access all the
goodies of tcsh for example. 

I guess you are saying that the problem is that this new 
remote console won't allow for the readline features at all.

> I really think you are better off just implementing a console in your
> GUI, and doing the various editing things there.
> 
> Tom> History you can implement in your UI.
> 
> Marc> Guess so :-(
> 
> Actually, I guess interoperating with gdb's history would be nice.  It
> would mean that users could "set history save on" and then have their
> commands show up in Eclipse as well.
> 
> I think this would need some new MI commands.  Specifically, 
> you'd need
> an MI request to fetch previous history items.
> 
> If you want this, would you mind filing a bug report?

I'll try out the patch for the remote console and
write bug reports for suggested improvements.

> Tom> I agree about the prompt.
> 
> Marc> That is good news :-)
> 
> Another bug report :)
> 
> Marc> - synchronization with the Eclipse UI
> 
> Tom> What does this mean?
> 
> Marc> Have Eclipse update properly after commands given
> Marc> from this new telnet console.  But doing that will
> Marc> require some GDB events that are not there yet.
> Marc> But that is the final goal of the Eclispe 
> Marc> gdb-console.
> 
> Ok, I see.  We've added some events in this last release cycle.
> Please file bugs for what you need.  These are usually not too hard to
> add.

Will do.

Thanks a lot!

Marc


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