From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#3650: M-x gdb unusable on Windows Date: Tue, 23 Jun 2009 16:38:30 +0900 Message-ID: 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> <19008.29888.625193.823405@totara.tehura.co.nz> Reply-To: Kenichi Handa , 3650@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1245743863 29815 80.91.229.12 (23 Jun 2009 07:57:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2009 07:57:43 +0000 (UTC) Cc: 3650@emacsbugs.donarmstrong.com To: nickrob@snap.net.nz (Nick Roberts) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 23 09:57:39 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 1MJ0sr-0005bI-B2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 09:57:37 +0200 Original-Received: from localhost ([127.0.0.1]:44223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ0sq-0000MX-TA for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 03:57:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ0sl-0000Kd-8E for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 03:57:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ0sg-0000IE-Ao for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 03:57:30 -0400 Original-Received: from [199.232.76.173] (port=45051 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ0sg-0000I3-4M for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 03:57:26 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58961) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJ0sf-00039j-C6 for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2009 03: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 n5N7vM41002018; Tue, 23 Jun 2009 00:57:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5N7j60s032305; Tue, 23 Jun 2009 00:45:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 23 Jun 2009 07:45: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.124574272031245 (code B ref 3650); Tue, 23 Jun 2009 07:45:06 +0000 Original-Received: (at 3650) by emacsbugs.donarmstrong.com; 23 Jun 2009 07:38:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5N7cZ9j031239 for <3650@emacsbugs.donarmstrong.com>; Tue, 23 Jun 2009 00:38:37 -0700 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n5N7cUBQ029207; Tue, 23 Jun 2009 16:38:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n5N7cUeA005823; Tue, 23 Jun 2009 16:38:30 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n5N7cU5A001478; Tue, 23 Jun 2009 16:38:30 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MJ0aM-0006l1-6n; Tue, 23 Jun 2009 16:38:30 +0900 In-reply-to: <19008.29888.625193.823405@totara.tehura.co.nz> (nickrob@snap.net.nz) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 23 Jun 2009 03: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:28923 Archived-At: In article <19008.29888.625193.823405@totara.tehura.co.nz>, nickrob@snap.net.nz (Nick Roberts) writes: > 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. How about making gud don't change directory when a program is specified with a relative path if gud-chdir-before-run is not nil nor t (I can't think of a good symbol at the moment)? I usually specify a relative path at M-x gdb when I'm in a buffer visiting a source file of a program to debug. If I'm in a buffer not related to a program to debug, I usually specify the program by an absolute path. > but it might be a good idea to document the variable > gud-chdir-before-run in the manual. Sure. --- Kenichi Handa handa@m17n.org