From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18285 invoked by alias); 6 Dec 2002 00:56:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18251 invoked from network); 6 Dec 2002 00:56:40 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 6 Dec 2002 00:56:40 -0000 Received: from redhat.com (totem.toronto.redhat.com [172.16.14.242]) by touchme.toronto.redhat.com (Postfix) with ESMTP id DD7FB80008E; Thu, 5 Dec 2002 19:56:39 -0500 (EST) Message-ID: <3DEFF5C7.7000105@redhat.com> Date: Thu, 05 Dec 2002 16:56:00 -0000 From: Fernando Nasser Organization: Red Hat , Inc. - Toronto User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 X-Accept-Language: en-us, en MIME-Version: 1.0 To: a2782@dis.ulpgc.es Cc: gdb@sources.redhat.com Subject: Re: Emacs and GDB References: <200211231133.gANBXsA06590@siglo21.dis.ulpgc.es> <2950-Sat23Nov2002133546+0200-eliz@is.elta.co.il> <200211231257.gANCv5306686@siglo21.dis.ulpgc.es> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-12/txt/msg00102.txt.bz2 a2782@dis.ulpgc.es wrote:> Any idea about how can I do this emacs-style invocation in (Kylix) C++? > I want to execute GDB and redirect its input to the output of my > program in C++ (in order to send commands to GDB); and its output to > the input of my C++ program (in order to parse the information which > GDB returns). > You should also look at the MI interface (see the manual). It is the safer way for sending commands and receiving output from GDB that is to be parsed. It won't change frequently like the output printed for human consumption. -- Fernando Nasser Red Hat - Toronto E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9