From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#58826: 29.0.50; gud-gdb can't find core file if executable is in a different directory Date: Thu, 27 Oct 2022 23:29:37 -0700 Message-ID: <87y1t0mp40.fsf@secretsauce.net> References: <87wn8komdb.fsf@jpl.nasa.gov> <83zgdgjwk3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37057"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.7; emacs 29.0.50 Cc: 58826@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 28 08:37:28 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooIze-0009Po-RR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Oct 2022 08:37:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooIzJ-0007xT-54; Fri, 28 Oct 2022 02:37:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooIzG-0007wL-IG for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 02:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooIzG-0002mS-9x for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 02:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooIzG-0002e7-5q for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 02:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Oct 2022 06:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58826 X-GNU-PR-Package: emacs Original-Received: via spool by 58826-submit@debbugs.gnu.org id=B58826.166693898610096 (code B ref 58826); Fri, 28 Oct 2022 06:37:02 +0000 Original-Received: (at 58826) by debbugs.gnu.org; 28 Oct 2022 06:36:26 +0000 Original-Received: from localhost ([127.0.0.1]:60054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooIyg-0002cl-1L for submit@debbugs.gnu.org; Fri, 28 Oct 2022 02:36:26 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:52845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooIye-0002cX-54 for 58826@debbugs.gnu.org; Fri, 28 Oct 2022 02:36:24 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 145F15C006F; Fri, 28 Oct 2022 02:36:19 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 28 Oct 2022 02:36:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1666938979; x=1667025379; bh=nn s9Rnb05m8qLN6asO153D7qro2VRuc0f/aQuTrRbHo=; b=WjdHPTS1em9v89TrAj stMh5KaCMzfKyH1ay8sj5K/lIHaFibO3Ap3m9EmHgHzuWZ+sHvYi2jP8Aa9aR+p1 oExsmfRbWAyrgqofCWHuYTn2nprv5wawyOAjOl1j7sw3+d9Nt+1zCuU/NgHv+OVe yQisStYqJnxKib2AspxLp/f0LTl4D3iaVD0x8QpfeDZ9a+KUM3DAOXQFV7DiPHaf ebnN9MFF8IgXDHvwux2U7gEBdrbVq/BrMNvCUlGy7IDyIwoeGWurs5Xr6FP0KJ2U JLZj/M6PAy4O2I1x+4uVQ7+aa2NX1ODsvUolKCF0k5QMyxj89cHjLxAE5lMaLL4U Yt1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1666938979; x=1667025379; bh=nns9Rnb05m8qLN6asO153D7qro2V Ruc0f/aQuTrRbHo=; b=PmBzspR8JBZv0Z86va5HylVzUfY7/fO2ZUT7UsQv9IG4 6e2vTODgQ8iNcz+CYkX6yJzCTlQXcTYyhyTopypyg8TT0FGUY9PsDY+rgtMqaHGN ylcnhToegFGRwM2YfdSLzRBFbN4CVhBepHQTXTIOtb3PrGYeqWGVQLcIYxpT5mm+ yJ3IV65qRB/X1FVgQCNnaErARclKhGPDANZhnYBBGOCrkByJtlBIYsEyrhmLBTf0 V91tWIUcnzzKrLKoezUd7zc2ZD6zL0nyByeDMbol97aUXbJyunzfl1JNm0xH2CAF 6EvHoY0I+Y/RHHRoDfc3hXdv0XC7rP6O+BQy5GMOhQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdehgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepffhimhgr ucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrg htthgvrhhnpeejveevgfegieegueevteffgefgteefgeeiveekfeektdekkedtieevhfeh leegteenucffohhmrghinhepshhfmhhvihiirdhphienucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguihhmrgesshgvtghrvghtshgruhgtvgdr nhgvth X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 28 Oct 2022 02:36:18 -0400 (EDT) In-reply-to: <83zgdgjwk3.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org 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" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246395 Archived-At: Thanks for replying, Eli. Eli Zaretskii writes: > This is the documented behavior of "M-x gud-gdb": > ..... > AFAIU, if you run the debugger like this: > > gdb --fullname python3 core.sfmviz.py.1807941 > > then GUD will not change the default-directory to /usr/bin, which I > believe is what you want. GDB will then locate the Python executable > either in the current default-directory or by searching PATH. OK. It's documented, but it's still not good. What if the executable wasn't in the $PATH? It's also really unintuitive to have an implicit change of directory here, and it would match most people's expectations if it was changed, I think. Do you know why we're doing that? Thanks.