From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: gdb Date: Wed, 07 Apr 2010 06:17:22 +0300 Message-ID: <83zl1gvtml.fsf@gnu.org> References: <84bpdwcjyg.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1270610264 16911 80.91.229.12 (7 Apr 2010 03:17:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2010 03:17:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 07 05:17:43 2010 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.69) (envelope-from ) id 1NzLlu-0007VI-8A for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 05:17:42 +0200 Original-Received: from localhost ([127.0.0.1]:56997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzLlt-00020e-3Y for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Apr 2010 23:17:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzLlW-00020Z-3o for help-gnu-emacs@gnu.org; Tue, 06 Apr 2010 23:17:18 -0400 Original-Received: from [140.186.70.92] (port=47135 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzLlU-00020P-Mu for help-gnu-emacs@gnu.org; Tue, 06 Apr 2010 23:17:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzLlT-0005pp-IE for help-gnu-emacs@gnu.org; Tue, 06 Apr 2010 23:17:16 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:36796) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzLlT-0005ph-BI for help-gnu-emacs@gnu.org; Tue, 06 Apr 2010 23:17:15 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L0H00400KPQEC00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 07 Apr 2010 06:17:14 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.92.42]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L0H001GCL4PO380@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 07 Apr 2010 06:17:14 +0300 (IDT) In-reply-to: <84bpdwcjyg.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:72613 Archived-At: > From: Sean Sieger > Date: Tue, 06 Apr 2010 18:08:55 -0400 > > In etc/DEBUG, it says, ``It is a good idea to run Emacs under GDB > ... *all the time*.'' It is. > It appears that I ought to reconfigure, this time with --no-opt and > -fnocrossjumping Yes, that's unfortunate, because latest versions of GCC (3.x and later) produce binaries that are very hard to debug in the optimized build. > that I'll then start starting Emacs in src/ (which > means I don't really need to make install?) Not true. You need to start GDB in the src/ directory. Then you can say "run /path/to/emacs/emacs.exe". > and, finally, um, I won't be > using the shortcut to start GDB & Emacs (or can the command be entered > there to do so?). You can have the shortcut run a batch file that would invoke GDB and run Emacs inside it. You can have a .gdbinit file that does some of that. And there are many other options.