From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Madhu Newsgroups: gmane.emacs.help Subject: Re: Running gdb in emacs. Date: Fri, 17 Jan 2020 14:42:53 +0530 Message-ID: References: <83sgkf30c0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="26169"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 17 12:20:40 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1isPg7-0006c6-SU for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Jan 2020 12:20:39 +0100 Original-Received: from localhost ([::1]:55646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isPg6-0000ra-T1 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Jan 2020 06:20:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33790) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isPfj-0000oM-CA for help-gnu-emacs@gnu.org; Fri, 17 Jan 2020 06:20:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1isPff-0004Mw-4W for help-gnu-emacs@gnu.org; Fri, 17 Jan 2020 06:20:15 -0500 Original-Received: from [117.193.15.22] (port=38732 helo=localhost.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1isPfd-0004H8-OE for help-gnu-emacs@gnu.org; Fri, 17 Jan 2020 06:20:11 -0500 Original-Received: (qmail 12150 invoked by uid 500); 17 Jan 2020 09:12:53 -0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 117.193.15.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122231 Archived-At: * Eli Zaretskii : Wrote on Thu, 16 Jan 2020 17:09:03 +0200: > "M-x gud-gdb" is the old way of running GDB under Emacs. It relies on > a GDB feature, called "annotations", which is deprecated by the GDB > developers, and could be removed from GDB at any moment. > > "M-x gdb" with all its features was written to be the main method of > running GDB from Emacs. We suggest that you use only "M-x gdb", > unless you have a very good reason, like some version of GDB that > doesn't support the mi interface well. I know you've given me advice before and I did try gdb-mi again, but it I fint it is still unusable. I can think of two reasons: 1. I am limited to using 80column frames and the windows that gdb-mi are too small and their content cannot be viewed without too navigating through too many keystrokes - repeated at every `step' 2. I prefer to use display-buffer-reuse-window when possible for display-buffer. When stepping through functions which are spread out in different files I need to have all the files open at specific points (i'm trying to understand the code). Every `step' alters the window configuration that I expect and I spend more time in getting back to where I was before invoking the gdb action, than actually debugging. On the other hand gud-gdb is more managable. With annotations it also pops to the buffer with the annotated source line (when available) but the overall disruption is much less.