From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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, 29 Dec 2022 08:19:58 +0200 Message-ID: <83o7rm91f5.fsf@gnu.org> References: <87wn8komdb.fsf@jpl.nasa.gov> <83zgdgjwk3.fsf@gnu.org> <87y1t0mp40.fsf@secretsauce.net> <83pmecjtxh.fsf@gnu.org> <83h6z0ib3j.fsf@gnu.org> <8335agd63b.fsf@gnu.org> <83wn7q5atd.fsf@gnu.org> <83h6yoyh6z.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24458"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, 58826@debbugs.gnu.org, dima@secretsauce.net To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 07:21:17 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 1pAmHz-000687-JU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 07:21:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAmHq-0007sp-4R; Thu, 29 Dec 2022 01:21:06 -0500 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 1pAmHn-0007sc-Hw for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 01:21:03 -0500 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 1pAmHn-0005Ag-4n for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 01:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAmHm-0005u0-He for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 01:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2022 06:21: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.167229481522603 (code B ref 58826); Thu, 29 Dec 2022 06:21:02 +0000 Original-Received: (at 58826) by debbugs.gnu.org; 29 Dec 2022 06:20:15 +0000 Original-Received: from localhost ([127.0.0.1]:59155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAmH1-0005sU-4a for submit@debbugs.gnu.org; Thu, 29 Dec 2022 01:20:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAmGz-0005sD-Ay for 58826@debbugs.gnu.org; Thu, 29 Dec 2022 01:20:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAmGt-0004uh-Ck; Thu, 29 Dec 2022 01:20:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=flFzG+mpVYi/IhqNQYZoxxTAOg8Lu6Gfiau8RyfwL2s=; b=nfZbM0Gy5vUR YopbToqT//MDHeqXDc9uuNzIGnuX026bcs1V0+Fuus0RJYGr1/IpDRHEYymK7AAYZlHkSqu+0T0sZ yEoEFhy2D9tyIjc97ssm+SqlPfKPcmQWACaitw/CCDt6KiP0476Bwt6fdtAzJ589OezAq+McdthfK JN/INOgMBBa4CqCxK0qubPbpzrGopiH5LK0mluaq0Ng1lxoTTEck5H7N6MKyldtAAyWaFOCdWOs5h RpbmDTR/COpFqJ1n6drUrvjqQQSo7cyoMnUm6uOYIpO4aaNLYOXtHbLCs5037fo3oAdz4s0TKJ3Kj p5Oy9PJb5NjvZnG2yoPTzg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAmGY-0003wr-0r; Thu, 29 Dec 2022 01:19:49 -0500 In-Reply-To: (message from Richard Stallman on Wed, 28 Dec 2022 22:14:14 -0500) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252010 Archived-At: > From: Richard Stallman > Cc: stefankangas@gmail.com, 58826@debbugs.gnu.org, > dima@secretsauce.net > Date: Wed, 28 Dec 2022 22:14:14 -0500 > > > Telling GDB to chdir to another directory will not affect the > > default-directory of the *gud-FILE* buffer, and that was the OP's problem: > > the fact that typing a relative file name was interpreted relative to a > > directory he didn't expect. > > It must be Emacs Lisp code that creates the *gud-FILE* buffer > and handles these relative file name. Can't that code be changed > to DTRT? The argument here, and the original problem, is about what is "TRT". For some (many) use cases, what the code does now is already TRT. I attempted to explain that up-thread: IME, the current behavior covers most of the use cases: either you are debugging a program you are developing from its source tree, or you are debugging an installed program that's on 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? If you think about that, it's actually quite natural: it makes the files you are likely to access from the debug session appear in the current directory. In any case, this is a long-standing behavior.