From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Augusto Fraga Giachero Newsgroups: gmane.emacs.help Subject: Re: GDB GUD Variable Buffer Date: Sun, 28 Aug 2016 13:35:51 -0300 Message-ID: <618416c0-3a8a-1bd9-2496-b864c3df3697@gmail.com> References: <87twe8gaqm.fsf@reisefreund.localdomain> <83zinwc2jy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1472402208 21730 195.159.176.226 (28 Aug 2016 16:36:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Aug 2016 16:36:48 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 28 18:36:44 2016 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 1be34Y-0004of-Rz for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Aug 2016 18:36:44 +0200 Original-Received: from localhost ([::1]:39976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1be34W-0007J6-CJ for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Aug 2016 12:36:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1be33v-0007In-AM for help-gnu-emacs@gnu.org; Sun, 28 Aug 2016 12:36:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1be33s-00014L-62 for help-gnu-emacs@gnu.org; Sun, 28 Aug 2016 12:35:59 -0400 Original-Received: from mail-ua0-x233.google.com ([2607:f8b0:400c:c08::233]:36122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1be33r-00014H-V1 for help-gnu-emacs@gnu.org; Sun, 28 Aug 2016 12:35:56 -0400 Original-Received: by mail-ua0-x233.google.com with SMTP id m60so171324552uam.3 for ; Sun, 28 Aug 2016 09:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=LS+VYApgbpZX9n/GiINK88uPTo7hP3xsayIE4ECqDLo=; b=LNGqTOMv8nmRlNu8HDouAU31K6EEl9nWJrouVAFtghKuwJ6+goENa1sTBxb4KMgOWq rl1XFLXkx3fzjyHj/HaX7WvWIV5LBsEYNxNIvDc6UDXW6lGs7DNjUyQCZ/urGugD/Cz8 FSBs84diZlyDokfU04i7oLRG+ETFMtxF+EkfMa9/MGl2M/18QF0HO/JEc0XUsrh73dlv ielTDFOYVOajFwWt3UsyGYJKg65thdimIVDgz6UyE2pUt5QlQ7ijWhzQSJlp9bD/yfmd SRfVYYFDtzA6/CW08tKFHRE/H1a9I6dcJ5Gxrl4FN7jsbCuFqZm+90LjAdN4X2teASDM CYCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=LS+VYApgbpZX9n/GiINK88uPTo7hP3xsayIE4ECqDLo=; b=PJTK0tzWOoJHhdxLNv6GDWpFRp3lYGzMJoINxNj467oYGiZHkEQZ42V6cMxEHy2+EV oUfDODrUDFEF9HnkufXEAdq7JpAsFQSm9Cj+bDROiyb4dNTZAP5jNpLXDu3bgeUu868+ vuZvmRCwnoWy5baZ4+6iUvT++QoGXrmrQ4qsRo1YN1jEbjHyW9mtTU1Y1DYQ5nIvd3Vi Hq2slpCKwPo/g1wb2XbutC/6xFvanXjNqysg5B02tF8SRougKzWQjw473hqu6bMAumC0 Mg8OLOaHz2NiEM8bFzuDAwJtUFFKx20Lp+otGuIkloIFM84G24ZwosdNXLNzmZXgBC8m Hp3A== X-Gm-Message-State: AE9vXwPo2+W1kIQs+/H45J4VxEN62L+nXjIScno8yevVLawXapSRF2JxFkiejRwDDrFEGg== X-Received: by 10.31.148.147 with SMTP id w141mr7471684vkd.1.1472402154993; Sun, 28 Aug 2016 09:35:54 -0700 (PDT) Original-Received: from [192.168.1.230] ([201.76.31.234]) by smtp.gmail.com with ESMTPSA id l2sm6497773ual.19.2016.08.28.09.35.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Aug 2016 09:35:54 -0700 (PDT) In-Reply-To: <83zinwc2jy.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c08::233 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:111219 Archived-At: Oh, I've forgotten the gdb-many-windows mode. Yes, it does show a variable buffer as I wanted, but it displays too many windows, I'll try to customize it. Another question, do you know how to automatically execute an elisp function right after I close the GUD session? That's because now I need to kill a gdb server process each time I exit gdb. Thanks, Augusto Fraga Giachero. On 28-08-2016 12:53, Eli Zaretskii wrote: >> From: Augusto Fraga Giachero >> Date: Sun, 28 Aug 2016 12:18:32 -0300 >> >> I'm using the gdb debugger through the Emacs GUD interface and I've >> thought that would be better to have a dedicated buffer just to display >> all local and global variables. I known that I can use the "display" >> command on the gdb shell, but I think a separated buffer would be way >> better. >> >> Someone has already done it? If not, can someone please point to where >> to tinker with the GUD source code? I have a basic understanding of elisp. > Did you try the alternative front-end in gdb-mi.el? It can display > the local variables of the current stack frame in a separate window > (you might need to invoke "M-x gdb-many-windows RET" for it to show). >