From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: make dist target for Windows Date: Thu, 01 Apr 2010 10:24:05 +0300 Message-ID: <83ljd7y6sq.fsf@gnu.org> References: <4BB2BB70.3090608@gmail.com> <83eij0zydg.fsf@gnu.org> <87634cdr0l.fsf@home.jasonrumney.net> <4BB3DE2D.7060708@gmail.com> <4BB42877.90601@gnu.org> <83oci3y893.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1270106800 27429 80.91.229.12 (1 Apr 2010 07:26:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Apr 2010 07:26:40 +0000 (UTC) To: jasonr@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 01 09:26:36 2010 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.69) (envelope-from ) id 1NxEnU-0004o3-87 for ged-emacs-devel@m.gmane.org; Thu, 01 Apr 2010 09:26:36 +0200 Original-Received: from localhost ([127.0.0.1]:52027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxEnT-0003eS-MD for ged-emacs-devel@m.gmane.org; Thu, 01 Apr 2010 03:26:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxEn6-0003Vu-Jo for emacs-devel@gnu.org; Thu, 01 Apr 2010 03:26:12 -0400 Original-Received: from [140.186.70.92] (port=45807 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxEmy-0003SU-I0 for emacs-devel@gnu.org; Thu, 01 Apr 2010 03:26:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxEmQ-0000VD-9f for emacs-devel@gnu.org; Thu, 01 Apr 2010 03:26:04 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:46273) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxEmH-0000U4-2r; Thu, 01 Apr 2010 03:25:24 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L0600500SEDDE00@a-mtaout21.012.net.il>; Thu, 01 Apr 2010 10:24:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.92.42]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L06003NWSK51S80@a-mtaout21.012.net.il>; Thu, 01 Apr 2010 10:24:05 +0300 (IDT) In-reply-to: <83oci3y893.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:123008 Archived-At: > Date: Thu, 01 Apr 2010 09:52:40 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > However, as this option is a close relative of `strip', I'm afraid > that it might not work, for the same (unknown) reasons stripping the > dumped Emacs executable doesn't work. > > I agree that if it does work, it's a good idea to pursue. Just tried it (GDB 7.0), and it does appear to work. There's one annoyance, though: "objcopy --add-gnu-debuglink" produces an invalid executable, probably for the same reason `strip' doesn't work. So GDB cannot locate the debug info file automatically, and you need to manually load it with the `symbol-file' command, inside GDB. You will then need to "source .gdbinit" manually as well, because the various breakpoints it sets automatically won't work until GDB has the symbol table loaded. After that, I was able to start Emacs under GDB and step through its `main' code.