From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26824 invoked by alias); 30 Sep 2011 19:27:28 -0000 Received: (qmail 26816 invoked by uid 22791); 30 Sep 2011 19:27:27 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Sep 2011 19:26:55 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8UJQsEd017385 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 30 Sep 2011 15:26:54 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8UJQq5d007755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 30 Sep 2011 15:26:54 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p8UJQpup009322; Fri, 30 Sep 2011 21:26:51 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p8UJQpgf009320; Fri, 30 Sep 2011 21:26:51 +0200 Date: Fri, 30 Sep 2011 19:27:00 -0000 From: Jan Kratochvil To: Grigory Tolstolytkin Cc: gdb@sourceware.org Subject: Re: Extending GDB to provide console over telnet Message-ID: <20110930192651.GA8582@host1.jankratochvil.net> References: <4E845D53.9090102@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E845D53.9090102@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-09/txt/msg00143.txt.bz2 On Thu, 29 Sep 2011 13:58:11 +0200, Grigory Tolstolytkin wrote: > The idea is to provide users an ability to remotely connect to gdb > and perform usual debugging interaction while it is already started > in Eclipse environment via MI interface. Not sure if you are aware eclipse already provides a window with CLI interface to running GDB, via MI (also visible in an Eclipse window): -interpreter-exec console "the-CLI-command-you-entered" > This allows starting debug locally in Eclipse with connected target > hardware, for example, and then pass debugging control to a remote > user at some point. One can also start gdbserver (even locally): gdbserver --multi :10000 And use both Eclipse and GDB to attach/detach to that gdbserver using `target extended-remote' while the inferior is still being debugged: (gdb) target extended-remote localhost:10000 (gdb) set remote exec-file /home/jkratoch/workspace/entryval2/Debug/entryval2 (gdb) b main (gdb) run (gdb) set remote kill-packet off (gdb) quit I was able now to attach with Eclipse to a process started using GDB first but Eclipse killed it during "Detach" but that may be just some Eclipse configuration setting, I do not know Eclipse much. Regards, Jan