simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] Implementing GDB "target remote | simulavr"


From: Joerg Wunsch
Subject: Re: [Simulavr-devel] Implementing GDB "target remote | simulavr"
Date: Sun, 6 Mar 2011 20:01:19 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

As Petr Hluzín wrote:

> Note: We should be able to detect whether GDB is trying to push
> remote packets on stdin or not - when/if proper select() mechanism
> is implemented. So we might live without the option.

Wouldn't it make sense to default to "GDB remote" behaviour if both,
stdin and stdout are found to not be connected to a tty, and no
--gdbserver option has been specified?  This can simply be probed
using isatty(), which is reasonably portable.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]