From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: gdb-show-main disappeared... Date: Mon, 7 Jul 2008 09:25:19 +1200 Message-ID: <18545.14399.150496.103105@kahikatea.snap.net.nz> References: <20080702173802.GA9995@dencomp.local> <18541.17604.32797.502093@kahikatea.snap.net.nz> <20080704145511.GA8325@dencomp.local> <18542.42499.283315.378390@kahikatea.snap.net.nz> <20080706160543.GB6949@dencomp.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215379565 27419 80.91.229.12 (6 Jul 2008 21:26:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2008 21:26:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Denis Golovan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 06 23:26:51 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KFbkv-00037l-R6 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jul 2008 23:26:50 +0200 Original-Received: from localhost ([127.0.0.1]:34136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFbk4-0000CW-KZ for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jul 2008 17:25:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFbjm-0000CR-PV for help-gnu-emacs@gnu.org; Sun, 06 Jul 2008 17:25:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFbjm-0000C7-2U for help-gnu-emacs@gnu.org; Sun, 06 Jul 2008 17:25:38 -0400 Original-Received: from [199.232.76.173] (port=49318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFbjl-0000C0-OK for help-gnu-emacs@gnu.org; Sun, 06 Jul 2008 17:25:37 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:52487) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFbjl-0002x0-Iw for help-gnu-emacs@gnu.org; Sun, 06 Jul 2008 17:25:37 -0400 Original-Received: from kahikatea.snap.net.nz (177.31.255.123.static.snap.net.nz [123.255.31.177]) by viper.snap.net.nz (Postfix) with ESMTP id 06C5A3DA0CE; Mon, 7 Jul 2008 09:25:24 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id DA4A18FC6D; Mon, 7 Jul 2008 09:25:20 +1200 (NZST) In-Reply-To: <20080706160543.GB6949@dencomp.local> X-Mailer: VM 7.19 under Emacs 22.2.50.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55278 Archived-At: > > That sounds like a different problem. How do you mean "it doesn't work"? > > Doesn't show main function and can't be called from mini-buffer (I think > command-line below is called so) gdb-show-main is a variable, not a function, so you can't do M-x gdb-show-main. From the mini-buffer, gou need to do M-x set-variable Set variable: t (say) > > The principles of bug reporting are not specific to Emacs. See the node > > "Reporting Bugs" in the Emacs manual. Can you explain what the symptoms > > are and exactly how to reproduce it? > > Well, it's easy - try to build emacs from svn source, build any program > with debug info and M-x gdb. Next is all we discussing. BTW, gdb-ui DOES > contain gdb-show-main, I checked. What happens if you set a breakpoint at main and type "run" in the GUD buffer? If the source doesn't appear in a buffer it probably means that you haven't compiled with debug information (-g option). -- Nick http://www.inet.net.nz/~nickrob