From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: gdba locals buffer does not show function arguments Date: Thu, 20 Sep 2007 23:16:03 +1200 Message-ID: <18162.22131.415529.319655@kahikatea.snap.net.nz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190287038 24682 80.91.229.12 (20 Sep 2007 11:17:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2007 11:17:18 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 20 13:17:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IYK1s-0004ty-QS for ged-emacs-devel@m.gmane.org; Thu, 20 Sep 2007 13:17:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYK1q-0001n7-T6 for ged-emacs-devel@m.gmane.org; Thu, 20 Sep 2007 07:17:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IYK1C-00017d-Lp for emacs-devel@gnu.org; Thu, 20 Sep 2007 07:16:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IYK1B-00016U-0H for emacs-devel@gnu.org; Thu, 20 Sep 2007 07:16:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYK1A-00016Q-Ni for emacs-devel@gnu.org; Thu, 20 Sep 2007 07:16:24 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IYK1A-0004LJ-9n for emacs-devel@gnu.org; Thu, 20 Sep 2007 07:16:24 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IYK0b-0005td-5n for emacs-pretest-bug@gnu.org; Thu, 20 Sep 2007 07:15:49 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IYK15-0004K9-MZ for emacs-pretest-bug@gnu.org; Thu, 20 Sep 2007 07:16:23 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IYK15-0004It-6Q for emacs-pretest-bug@gnu.org; Thu, 20 Sep 2007 07:16:19 -0400 Original-Received: from kahikatea.snap.net.nz (182.40.255.123.static.snap.net.nz [123.255.40.182]) by viper.snap.net.nz (Postfix) with ESMTP id BCA953D8898; Thu, 20 Sep 2007 23:16:07 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 6D9788FC6D; Thu, 20 Sep 2007 23:16:04 +1200 (NZST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 23.0.50.9 X-Detected-Kernel: Linux 2.4-2.6 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79366 gmane.emacs.pretest.bugs:19945 Archived-At: > I was debugging using gdba today and found that the "locals" buffer > does not show the arguments to the current function. Yes, but they are shown in the stack buffer with their value (although the type isn't given). This is due to the underlyng GDB CLI command "info stack". The "locals" buffer currently uses the output of "info locals". The output of "info args" could also be used but that would result in duplication. > I expected it to show both the local variables and the function > arguments. Eventually Emacs will use GDB/MI instead of annotations. The GDB/MI commands "-stack-list-locals", "-stack-list-arguments" and "-stack-list-frames" will allow the arguments to be shown in the locals buffer and not the stack buffer. -- Nick http://www.inet.net.nz/~nickrob