From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12301 invoked by alias); 30 May 2007 09:40:28 -0000 Received: (qmail 12292 invoked by uid 22791); 30 May 2007 09:40:27 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.171) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 May 2007 09:40:20 +0000 Received: by ug-out-1314.google.com with SMTP id j40so159115ugd for ; Wed, 30 May 2007 02:40:18 -0700 (PDT) Received: by 10.67.92.9 with SMTP id u9mr446051ugl.1180518018432; Wed, 30 May 2007 02:40:18 -0700 (PDT) Received: from ?192.168.0.153? ( [217.218.36.3]) by mx.google.com with ESMTP id 34sm296nfu.2007.05.30.02.40.10; Wed, 30 May 2007 02:40:16 -0700 (PDT) Subject: Re: GDB reference manual From: Hossein Aminaiee To: Rob Quill Cc: gdb@sourceware.org In-Reply-To: References: <1180354351.4601.14.camel@delaram> <20070528155451.GA5140@localhost.localdomain> <1180359975.4601.24.camel@delaram> Content-Type: text/plain Date: Wed, 30 May 2007 09:40:00 -0000 Message-Id: <1180517570.7120.13.camel@delaram> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit 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: 2007-05/txt/msg00176.txt.bz2 Hi, I read the manual and I found the GDB/MI useful. I really appreciate your help. What I guessed from the manual that one should start a gdb process in the background and communicate with it using the GDB/MI commands. Am I wrong? But how to send MI commands to the GDB? Should GDB be started using the input/output redirection? Is there any tiny source examples of using GDB/MI? Specially demonstrating the communication with GDB from a programmers point of view? I explored a couple of frontends for GDB like rhide and I figured out that they've added the GDB/MI source files to their project and compiled them into their binaries. But what about the libgdb? Is it possible to use libgdb.so? Cheers, Hossein Aminaiee On Mon, 2007-05-28 at 15:07 +0100, Rob Quill wrote: > On 28/05/07, Hossein Aminaiee wrote: > > Hi, > > > > I have searched the whole GDB internal manual and I could find > > explanations on ui_* but gdb_* functions. Would you please indicate the > > exact page of which manual? Please send me the url of the manual you are > > using. > > It can be found in the GDB user guide, not the internals manual. It is > under chapter 24. Quoting from the start of this chapter: > > "gdb/mi is a line based machine oriented text interface to gdb and is > activated by specifying > using the '--interpreter' command line option (see Section 2.1.2 [Mode > Options], page 13). > It is specifically intended to support the development of systems > which use the debugger as > just one small component of a larger system." > > Hope that helps. > > Rob Quill > > > > > Cheers, > > Hossein Aminaiee > > > > > > On Mon, 2007-05-28 at 08:54 -0700, Daniel Jacobowitz wrote: > > > On Mon, May 28, 2007 at 03:42:31PM +0330, Hossein Aminaiee wrote: > > > > Hi all, > > > > I've developed an IDE for C++ and I'm about to provide a debugger for > > > > it using GDB. But I could not find any reference manual containing the > > > > gdb_* functions (API) listings and explanations. > > > > > > That's because you shouldn't be using those. Use GDB/MI, which is > > > described in the manual. > > > > > > >