From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26363 invoked by alias); 28 Nov 2010 22:40:07 -0000 Received: (qmail 26265 invoked by uid 22791); 28 Nov 2010 22:40:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 28 Nov 2010 22:40:01 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 9FB201B403A; Sun, 28 Nov 2010 22:39:58 +0000 (UTC) From: Mike Frysinger To: gdb@sourceware.org Subject: Re: Using telnet to control a running GDB Date: Sun, 28 Nov 2010 22:40:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.36; KDE/4.5.2; x86_64; ; ) Cc: Marc Khouzam References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2079905.x9Mz5TPPu9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201011281736.07476.vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-11/txt/msg00102.txt.bz2 --nextPart2079905.x9Mz5TPPu9 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 1315 On Sunday, November 28, 2010 13:27:56 Marc Khouzam wrote: > I saw a neat feature in another debugger that I thought would be nice for > GDB. >=20 > The user could ask GDB to open a tcp port which would accept a telnet > connection. Using telnet, the user could then start a _second_ shell to > the same GDB and control it. >=20 > This would help a user get a full-fledge GDB command shell, even when GDB > is being run by a frontend. >=20 > It would also allow the remote controlling of a running GDB. Could be > useful for troubleshooting. >=20 > Such a feature wouldn't already exist, would it? your description is a bit vague as to what you want this to do exactly. my= =20 understanding of gdb is that it isnt designed for multiple control threads.= =20=20 plus, it'd be a bit confusing for one gdb controlling a process and to have= =20 two different interfaces attempting to change the execution flow. ive seen gdb monitors that accepted telnet sessions as well as gdb connecti= ons=20 simultaneously, but the telnet sessions were more for maintenance than actu= al=20 gdb type behavior. in other words, you had a dedicated device running a=20 dedicated monitor that controlled some other processor (e.g. a BDI or PEEDI= =20 ICE). it'd help if you described with more details and actual examples. -mike --nextPart2079905.x9Mz5TPPu9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iQIcBAABAgAGBQJM8tlXAAoJEEFjO5/oN/WBdSgP/iiC5w1TL1hlty6Ubx0GTszo LpvP3tA8yVG9HuEjPPgoPApmI4q3vMHfL0u8/iycwRvRoVEDL/fgFzSiG6Q5t0g7 vPCsX7aE6n8q4bBAsk7cIwuz5dQqfilvpJNjp+Fqi5TuMNFvEQgfs8A+oa2uSGtj XTBtydLBHguxHzPmcdf5PNB6DJGwqgtr+hgi/5twevwe/f+orxlY93UaKPZVwGWG jBrtmTEaEtlrU6o7KrUUziBnK3PWyPvyocnThgekS/eGRNu0YTo4eDNEovFhYac8 f4p16HmUpwx64PgyV5rzC9F/Xcsyqb/QYloK2qCNh9vsaq3qUZYW880RkW9jBfTY PcSi/h5lhh0XA9yjre32Lld6Gg2ub4Cx0e4a19zQjiNr3J6bB0SYpuzYznjtDjlq Fyv8uSJYLh8u2NUYJpvyxw5g7vL4eiWrwRCuNsywzNG3ZwhBHF/PJrN7n00sejhA VbixC/sx9JPXJ73C903V1YhIaqkVO7a4WpG06DkPVvLc34WW2hwKtqis9sHf9gRJ 5n71HIC2vv+XjAntk9cdjWexZbwA1N+xo8xhriomvKx0Y1Rk/20UNjR8O6smzPCg QHU6CFx0UXhx4lqgCnX22Q6soYYOnYkoWJsxJ/dmkXE75hJa1ge6k3smoh9AWOe3 Q0aOI4ijIlRg1xF9AXGE =VlXw -----END PGP SIGNATURE----- --nextPart2079905.x9Mz5TPPu9--