From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sean Sieger Newsgroups: gmane.emacs.help Subject: Re: gdb Date: Wed, 07 Apr 2010 05:32:13 -0400 Message-ID: <87ljczvc9u.fsf@gmail.com> References: <84bpdwcjyg.fsf@gmail.com> <83zl1gvtml.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270632841 16596 80.91.229.12 (7 Apr 2010 09:34:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2010 09:34:01 +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 11:33:58 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 1NzRe1-0002Bh-RU for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 11:33:58 +0200 Original-Received: from localhost ([127.0.0.1]:32802 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzRe1-0002jr-1S for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 05:33:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzRcZ-0002YK-P8 for help-gnu-emacs@gnu.org; Wed, 07 Apr 2010 05:32:27 -0400 Original-Received: from [140.186.70.92] (port=59894 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzRcX-0002Xf-78 for help-gnu-emacs@gnu.org; Wed, 07 Apr 2010 05:32:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzRcV-0000oC-Ok for help-gnu-emacs@gnu.org; Wed, 07 Apr 2010 05:32:25 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56817) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzRcV-0000o5-I8 for help-gnu-emacs@gnu.org; Wed, 07 Apr 2010 05:32:23 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NzRcT-0001iN-Bq for help-gnu-emacs@gnu.org; Wed, 07 Apr 2010 11:32:21 +0200 Original-Received: from pool-70-18-25-112.ny325.east.verizon.net ([70.18.25.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Apr 2010 11:32:21 +0200 Original-Received: from sean.sieger by pool-70-18-25-112.ny325.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Apr 2010 11:32:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-70-18-25-112.ny325.east.verizon.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:LcdGgW+L+geKDSUAXKvCY8IZY+0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:72618 Archived-At: Eli Zaretskii writes: > 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. Thanks for your time, Eli; I'll work on it today.