From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#3650: M-x gdb unusable on Windows Date: Mon, 22 Jun 2009 20:37:26 -0700 (PDT) Message-ID: <200906230337.n5N3bQGh016672@godzilla.ics.uci.edu> References: <49FF3340.2040008@gmx.de> <4A005A64.5050908@gnu.org> <4A3F1B05.7030105@gnu.org> <4A3F7058.902@gnu.org> <4A3F81AC.1070404@gnu.org> <4A3F8EAC.5010009@gnu.org> Reply-To: Dan Nicolaescu , 3650@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245729460 30561 80.91.229.12 (23 Jun 2009 03:57:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2009 03:57:40 +0000 (UTC) Cc: 3650@emacsbugs.donarmstrong.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 23 05:57:37 2009 Return-path: Envelope-to: geb-bug-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 1MIx8a-0001J5-SD for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 05:57:37 +0200 Original-Received: from localhost ([127.0.0.1]:43743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIx8a-0001LD-6j for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 23:57:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIx8U-0001Ka-PU for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 23:57:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIx8P-0001Fl-TX for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 23:57:30 -0400 Original-Received: from [199.232.76.173] (port=57362 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIx8P-0001FP-Mw for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 23:57:25 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55524) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MIx8P-0006nL-47 for bug-gnu-emacs@gnu.org; Mon, 22 Jun 2009 23:57:25 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5N3vMIC023838; Mon, 22 Jun 2009 20:57:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5N3j4FW021684; Mon, 22 Jun 2009 20:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 23 Jun 2009 03:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3650 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3650-submit@emacsbugs.donarmstrong.com id=B3650.124572826320738 (code B ref 3650); Tue, 23 Jun 2009 03:45:04 +0000 Original-Received: (at 3650) by emacsbugs.donarmstrong.com; 23 Jun 2009 03:37:43 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5N3bdFo020732 for <3650@emacsbugs.donarmstrong.com>; Mon, 22 Jun 2009 20:37:40 -0700 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n5N3bRiG017420; Mon, 22 Jun 2009 20:37:27 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n5N3bQGh016672; Mon, 22 Jun 2009 20:37:26 -0700 (PDT) In-Reply-To: (Kenichi Handa's message of "Tue, 23 Jun 2009 10:59:29 +0900") Original-Lines: 42 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n5N3bRiG017420 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 22 Jun 2009 23:57:30 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28920 Archived-At: Kenichi Handa writes: > In article <4A3F8EAC.5010009@gnu.org>, Jason Rumney writes: > > > Problem 1 is that the default directory of gdb is the directory where > > the Emacs executable is even though I started it from the source > > directory and specified oo/i386/emacs.exe as the executable to debug. > > This means that .gdbinit needs to be "source"d in manually. > > It seems that this problem is not specific to Windows. On > GNU/Linux, to debug a program compiled using libtool, I have > to to debug ./.libs/PROGNAME. In that case, even if the > current directory has .gdbinit, it is not loaded in the gdb > session because gdb starts with the directory ./.libs. This is extremely annoying, I've had to add (setq gud-chdir-before-run nil) to my .emacs at some point to get around this. The current default completely breaks if you want to debug things that use relative file names. Say if you have: subdir1/binary -blah subdir2/foo -bar subdir3/baz That you can debug from the command like simply doing: gdb --args subdir1/binary -blah subdir2/foo -bar subdir3/baz you can't debug this by default by doing: M-x gdb RET --args subdir1/binary -blah subdir2/foo -bar subdir3/baz like one could do with emacs-21... Things work much better if you set (setq gud-chdir-before-run nil) Not sure what's the point of this change, making M-x gdb different from doing the same thing from the command line by default does not sound like a great idea.