From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nickrob@snap.net.nz (Nick Roberts) Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3650: M-x gdb unusable on Windows Date: Tue, 23 Jun 2009 18:22:56 +1200 Message-ID: <19008.29888.625193.823405@totara.tehura.co.nz> 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: Nick Roberts , 3650@emacsbugs.donarmstrong.com 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 1245739065 16909 80.91.229.12 (23 Jun 2009 06:37:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2009 06:37:45 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Kenichi Handa , 3650@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 23 08:37:42 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 1MIzdT-000893-Pp for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 08:37:40 +0200 Original-Received: from localhost ([127.0.0.1]:58727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIzdT-00017t-5z for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 02:37:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIzdO-00017o-8o for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 02:37:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIzdJ-00014o-RG for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 02:37:33 -0400 Original-Received: from [199.232.76.173] (port=45999 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIzdJ-00014l-JB for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 02:37:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57766) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MIzdJ-0000Zy-30 for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 02:37:29 -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 n5N6bMhW020268; Mon, 22 Jun 2009 23:37:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5N6U6wD018866; Mon, 22 Jun 2009 23:30:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: nickrob@snap.net.nz (Nick Roberts) Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 23 Jun 2009 06:30:06 +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.124573818317861 (code B ref 3650); Tue, 23 Jun 2009 06:30:06 +0000 Original-Received: (at 3650) by emacsbugs.donarmstrong.com; 23 Jun 2009 06:23:03 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from viper.snap.net.nz (viper.snap.net.nz [202.37.101.25] (may be forged)) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5N6Mw79017854 for <3650@emacsbugs.donarmstrong.com>; Mon, 22 Jun 2009 23:22:59 -0700 Original-Received: from totara (110.28.255.123.dynamic.snap.net.nz [123.255.28.110]) by viper.snap.net.nz (Postfix) with ESMTP id B228D3DA05E; Tue, 23 Jun 2009 18:22:57 +1200 (NZST) Original-Received: by totara (Postfix, from userid 1000) id A426FC13F; Tue, 23 Jun 2009 18:22:56 +1200 (NZST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.2.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 23 Jun 2009 02:37:33 -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:28922 gmane.emacs.pretest.bugs:24679 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. You can change the behaviour to keep the current directory by setting gud-chdir-before-run to nil. The problem with this arrangement is that it might not find your .gdbinit file (as with Emacs) and it's generally less obvious what the default directory is in Emacs than what the current working directory is from the command line. Dan might find it "extremely annoying" but this change goes back to 2001-05-24 when gud.el was in the lisp directory. I quite like this default and suggest keeping it, but it might be a good idea to document the variable gud-chdir-before-run in the manual. -- Nick http://www.inet.net.nz/~nickrob