From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15133 invoked by alias); 4 Nov 2009 14:30:00 -0000 Received: (qmail 15061 invoked by uid 22791); 4 Nov 2009 14:29:58 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Nov 2009 14:29:47 +0000 Received: by fg-out-1718.google.com with SMTP id e21so1811953fga.12 for ; Wed, 04 Nov 2009 06:29:45 -0800 (PST) Received: by 10.87.65.27 with SMTP id s27mr4036621fgk.12.1257344984934; Wed, 04 Nov 2009 06:29:44 -0800 (PST) Received: from ?11.243.122.237? (93-39-109-72.ip75.fastwebnet.it [93.39.109.72]) by mx.google.com with ESMTPS id 4sm1270002fge.4.2009.11.04.06.29.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Nov 2009 06:29:43 -0800 (PST) Subject: Re: GDB GUI Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes From: Marco Menegazzi In-Reply-To: <200911021436.46359.sergiodj@linux.vnet.ibm.com> Date: Wed, 04 Nov 2009 14:30:00 -0000 Cc: gdb@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <0F6AD058-C87F-4E6E-9CA2-0B7F2342AD5E@gmail.com> References: <100F84AB-4BCE-427F-9796-3D2162D97DC9@gmail.com> <200911021436.46359.sergiodj@linux.vnet.ibm.com> To: =?iso-8859-1?Q?S=E9rgio_Durigan_J=FAnior?= 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: 2009-11/txt/msg00035.txt.bz2 Thank you. I've already seen that documentation but my problem is that it does=20=20 not explain how to connect to this interface through code. It explains=20=20 how it is but not how to use it ... I want to connect through my java=20=20 code but the only idea I have is to call it directly from the code=20=20 with Runtime.exec ... but then I ask myself why to use gdb/mi that=20=20 returns a more complex output instead of calling directly gdb and=20=20 parse the stout to get what I want? Sorry if my questions appear to be stupid but I'm very new of this ... Il giorno 02/nov/2009, alle ore 17.36, S=E9rgio Durigan J=FAnior ha scritto: > Hi Marco, > > On Monday 02 November 2009, Marco Menegazzi wrote: >> Hi! >> I'm new with gdb and I need help about writing a simple gui to=20=20 >> control >> gdb output. >> I just need something that permits me to send commands as from the >> textual interface and receive output as it is ... the main aspect=20=20 >> I've >> to work on is variable inspection so I don't need to create a real >> frontend with a mess of functions ... I just need something that >> permits me to start gdb under a Java (for example) program and=20=20 >> control >> it as I am writing on terminal. > > I believe you're looking for the GDB MI interface. You can find more > information about it here: > > http://sources.redhat.com/gdb/onlinedocs/gdb_28.html#SEC274 > > If you have any question that are not answered by the manual, get=20=20 > back to this > mailing list :-). > > --=20 > S=E9rgio Durigan J=FAnior > Linux on Power Toolchain - Software Engineer > Linux Technology Center - LTC > IBM Brazil