From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?iso-8859-1?Q?Juan_Rafael_Garc=EDa_Blanco?= Newsgroups: gmane.emacs.help Subject: RE: GUD GDB integration Date: Thu, 24 May 2018 06:05:04 +0000 Message-ID: <961A8B2D633A304F92BD712DF06B04DFB227EB66@PTMMAILBOX2.gmv.es> References: <961A8B2D633A304F92BD712DF06B04DFB227E868@PTMMAILBOX2.gmv.es> <83fu2icr3v.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527141910 17867 195.159.176.226 (24 May 2018 06:05:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 May 2018 06:05:10 +0000 (UTC) To: Eli Zaretskii , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 24 08:05:06 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLjN1-0004WH-6T for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2018 08:05:03 +0200 Original-Received: from localhost ([::1]:36758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLjP8-0001bh-AU for geh-help-gnu-emacs@m.gmane.org; Thu, 24 May 2018 02:07:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLjNF-0000r3-AV for help-gnu-emacs@gnu.org; Thu, 24 May 2018 02:05:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLjNE-0007wG-7E for help-gnu-emacs@gnu.org; Thu, 24 May 2018 02:05:17 -0400 Original-Received: from mx22.gmv.es ([195.76.171.29]:55964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLjN8-0007n1-Pq; Thu, 24 May 2018 02:05:11 -0400 Original-Received: HReceived: from filter2.gmv.es (caronte.gmv.es [195.76.171.2]) by mx22.gmv.es with id w4O656NW021520 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 24 May 2018 08:05:07 +0200 Original-Received: from pps.filterd (filter2.gmv.es [127.0.0.1]) by filter2.gmv.es (8.16.0.22/8.16.0.22) with SMTP id w4O656qe031122; Thu, 24 May 2018 08:05:06 +0200 Original-Received: from ptmcas2.gmv.es (smtpfilter.gmv.es [172.18.18.64]) by filter2.gmv.es with ESMTP id 2j2cn6jrv1-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 24 May 2018 08:05:06 +0200 Thread-Topic: GUD GDB integration Thread-Index: AdPybd861aGt/pzxQxGiO2JwhWn1rwAP1uEWAB2bziA= In-Reply-To: <83fu2icr3v.fsf@gnu.org> Accept-Language: en-US, es-ES Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-kse-attachmentfiltering-interceptor-info: protection disabled x-kse-serverinfo: ptmcas2.gmv.es, 9 x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: Clean, bases: 23/05/2018 22:30:00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-24_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805240074 X-Scanned-By: MIMEDefang 2.80 on 195.76.171.29 X-KLMS-Rule-ID: 3 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: not scanned, disabled by settings X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, bases: 2018/05/24 00:36:00 #8482294 X-KLMS-AntiVirus-Status: Clean, skipped X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.76.171.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116846 Archived-At: > -----Original Message----- > From: help-gnu-emacs [mailto:help-gnu-emacs- > bounces+jrblanco=3Dgmv.com@gnu.org] On Behalf Of Eli Zaretskii > Sent: Wednesday, May 23, 2018 5:46 PM > To: help-gnu-emacs@gnu.org > Subject: Re: GUD GDB integration > > > From: Juan Rafael Garc=EDa Blanco > > Date: Wed, 23 May 2018 08:23:04 +0000 > > > > I wanted to know how gud and gdb interact, i.e. by parsing gdb's output= or > using gdb's built-in scripting engine. I have gone through gud.el and I > understand interaction is accomplished by parsing gdb's output. Could you > please confirm my understanding? > > There are 2 interfaces: the old one in gud.el uses the CLI output with > annotations, the new one in gdb-mi.el uses the GDB/MI interface. > Thank you. I did not know about annotations. > > If so, why is this approach better than writing event handlers using gd= b's > scheme interpreter? > > Not sure what you mean by that. How would Emacs invoke the GDB's > Guile interface? > Well, actually, gdb's guile/python interface would invoke Emacs back when hitting a breakpoint, exception, ... I think it is a way to handle gdb even= ts synchronously, instead of reading and parsing gdb's output; but that would require a connection from the guile part back to Emacs. > > The context for this question is that I'm writing a gdb client, not for= emacs, > that somehow resembles what gud does. So I wanted to know what gud > does because it is widely used and it is known to work. > > You can look in gdb-mi.el to see the code which uses GDB/MI. Thank you very much. I will look into that implementation. Thanks. P Please consider the environment before printing this e-mail. ______________________ This message including any attachments may contain confidential=20 information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la=20 Informacion siendo para uso exclusivo del destinatario, quedando=20 prohibida su divulgacion copia o distribucion a terceros sin la=20 autorizacion expresa del remitente. Si Vd. ha recibido este mensaje=20 erroneamente, se ruega lo notifique al remitente y proceda a su borrado.=20 Gracias por su colaboracion. ______________________