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 16:52:32 -0700 Message-ID: <87wn8komdb.fsf@jpl.nasa.gov> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9956"; mail-complaints-to="usenet@ciao.gmane.io" To: 58826@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 28 01:54:10 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 1ooChM-0002NO-OH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Oct 2022 01:54:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooCgK-0004FJ-P1; Thu, 27 Oct 2022 19:53:04 -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 1ooCgJ-0004Ey-9f for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 19:53:03 -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 1ooCgI-0001f5-HX for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 19:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooCgH-00018J-W7 for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 19:53: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: Thu, 27 Oct 2022 23:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58826 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16669147684333 (code B ref -1); Thu, 27 Oct 2022 23:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Oct 2022 23:52:48 +0000 Original-Received: from localhost ([127.0.0.1]:59715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooCg3-00017o-Kx for submit@debbugs.gnu.org; Thu, 27 Oct 2022 19:52:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooCg2-00017h-0G for submit@debbugs.gnu.org; Thu, 27 Oct 2022 19:52:46 -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 1ooCg1-0004E6-H5 for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 19:52:45 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooCfw-0001e8-61 for bug-gnu-emacs@gnu.org; Thu, 27 Oct 2022 19:52:45 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7F3F43200920 for ; Thu, 27 Oct 2022 19:52:36 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 27 Oct 2022 19:52:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t= 1666914756; x=1667001156; bh=t21WFuNlfX8PvkY9ujVe1oDPykHe4cZLFMi 3tHXFqao=; b=Qest+E+aNMpE1h6d04oJi7ttAJNv5lTy5Xz91lnXkq9zIUMNwSb T1k4GlWXVWz07g19MOf8HtBxTGrEITO3VYZv9WREi2+J0KhyrdWxnW5BUmp/rbqV ZSSI2HrPMylNhiKp/adFjlkGySOHm+KxY/w2wuoVWWX+RcbD64R9lNQGal3tknYB jwps37lOtlVlnPjwMkPx9T9jpFHthr7KNI1CKYotxPiuxxGQt7bzch+nRmTvIEaA 7ueijEl3IzPzeOb8jXQ8ZsVllP6vp1EklWgQTVGWha8ZQju3C49hJpoc3D4ELBBD 0QF/2XycktMzMMSSuXk+ur1d8h2FQN/x9Fw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :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=1666914756; x= 1667001156; bh=t21WFuNlfX8PvkY9ujVe1oDPykHe4cZLFMi3tHXFqao=; b=G ESz8Whtm9+b3sTVWSPFVNhFCyqJaaIgzl3XSPUtWg/5oSFgUb/qydxNtTCF5WYT1 3/byAdEabYQnwllJb/LsMZMNYJXrFKiuNZjiycWTpozAx2ddEft8QbkebMNx5huc JWzc9mJ03msOAVRXcICyEDQMihWK1pwOK5bk4LmjMGHQ3w55F07gUMqrfQbXKipp tfUr1uk48+iRUfcBS8wtRPRz7r63W3knXqTTJ8iKYjzLSohWlqwbzRvZU4EFCxSJ 2x8y+975h5dAz1Ry85owXbUIGoCoW1uTyrXDiqGPuUDaD3NBfbem3jYMXzUB3Pwg 9mikvPFRZmopvEL8MKsXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdehgddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddquddtmdenucfjughrpefhvf fufffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhm rgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrthhtvghrnhepkedvudetge ehvdeguedutdfgteffudeikeeiieetgeffheeugeehtefgieehffefnecuffhomhgrihhn pehsfhhmvhhiiidrphihnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 27 Oct 2022 19:52:35 -0400 (EDT) Received-SPF: pass client-ip=64.147.123.20; envelope-from=dima@secretsauce.net; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:246383 Archived-At: Hi. I'm using a bleeding-edge build of emacs, although I think this is a very old bug. I just ran a Python program in $DIRECTORY: python3 program.py python3 is in /usr/bin. There was a bug, the program crashed, dumped core, and I want to debug it. I do this from the buffer containing program.py (default-directory is $DIRECTORY, which contains program.py and is NOT /usr/bin) M-x gud-gdb gdb --fullname /usr/bin/python3 core.sfmviz.py.1807941 It says this: /usr/bin/core.sfmviz.py.1807941: No such file or directory. It works fine from the shell, outside of emacs. The issue is that gud-gdb is changing default-directory to /usr/bin (where the binary executable lives). But I never asked for that, and this is unexpected: I'd expect it to do the same thing as that gdb command would do in the shell. Thanks