From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Gdb in emacs 24 Date: Wed, 5 Oct 2011 17:55:34 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317851753 7695 80.91.229.12 (5 Oct 2011 21:55:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2011 21:55:53 +0000 (UTC) To: "emacs-devel@gnu.org devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 05 23:55:48 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZRL-0007h8-RW for ged-emacs-devel@m.gmane.org; Wed, 05 Oct 2011 23:55:48 +0200 Original-Received: from localhost ([::1]:39471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBZRL-0003WE-Hl for ged-emacs-devel@m.gmane.org; Wed, 05 Oct 2011 17:55:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBZRI-0003Vw-EO for emacs-devel@gnu.org; Wed, 05 Oct 2011 17:55:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBZRG-0006jk-2I for emacs-devel@gnu.org; Wed, 05 Oct 2011 17:55:44 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:46910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBZRF-0006jD-Ss for emacs-devel@gnu.org; Wed, 05 Oct 2011 17:55:41 -0400 Original-Received: by qadb17 with SMTP id b17so2065057qad.0 for ; Wed, 05 Oct 2011 14:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=PaOQf5k8+i80j5025vfQ1Os77IZA9Gr4VvCT3ZGz42c=; b=XKoGDZsMG04wfU64NlzKHXiIjqsaRWy/iWhLKsq+rkVrvTg1wzZvnBpKkA/F7P66Iq XSksYIWd5KC4WHqH9Ge4iymBoAFm/BNx6O5B2EaYHh/PhPC1L7PbHLD0a8PadKu18Spj gOBWPxRJihkCVmbxrIYmEYaqEqHe/PUQUEBV8= Original-Received: by 10.229.221.197 with SMTP id id5mr2479593qcb.108.1317851740154; Wed, 05 Oct 2011 14:55:40 -0700 (PDT) Original-Received: from elin.andrew.cmu.edu (ELIN.ANDREW.CMU.EDU. [128.2.46.20]) by mx.google.com with ESMTPS id fz6sm3667314qab.21.2011.10.05.14.55.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Oct 2011 14:55:36 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1244.3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144590 Archived-At: On Mar 8, 2011, at 3:56 AM, Eli Zaretskii wrote: >=20 > If you "C-h f gdb RET", you will see that Emacs 24 switched to use the > GDB/MI interface, so the --annotate=3D3 thingy is no longer TRT, and = I'm > quite sure it will interfere in "interesting" ways. >=20 Actually, the doc string doesn't tell me that at all. In fact, it gives = an undefined COMMAND-LINE argument, and the text refers to an undeclared = FILE argument. I fell for --annotate=3D3 just like the OP did and, for a long time, = just thought that Emacs 24 and GDB 6.3 (as on OS X) were again = incompatible. Wouldn't it be more user-friendly to just ask for the name of the = executable after M-x gdb, compose the correct arguments to GDB = automatically? C-u M-x gdb could ask for the full set of arguments as before. That's because if you don't give -i mi, it won't work either, without = simple-to-understand error message. =3D=3D=3D gdb is an interactive Lisp function in `gdb-mi.el'. It is bound to . (gdb COMMAND-LINE) Run gdb on program FILE in buffer *gud-FILE*. The directory containing FILE becomes the initial working directory and source-file directory for your debugger. If `gdb-many-windows' is nil (the default value) then gdb just pops up the GUD buffer unless `gdb-show-main' is t. In this case it starts with two windows: one displaying the GUD buffer and the other with the source file with the main routine of the inferior. If `gdb-many-windows' is t, regardless of the value of `gdb-show-main', the layout below will appear. Keybindings are shown in some of the buffers. Watch expressions appear in the speedbar/slowbar. The following commands help control operation : `gdb-many-windows' - Toggle the number of windows gdb uses. `gdb-restore-windows' - To restore the window layout. See Info node `(emacs)GDB Graphical Interface' for a more detailed description of this mode.