From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman 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: Fri, 25 Nov 2022 19:50:12 -0500 Message-ID: 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> <87tu2pp8au.fsf@secretsauce.net> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37274"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, stefankangas@gmail.com, 58826@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 26 01:51:32 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 1oyjPo-0009Rb-OQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Nov 2022 01:51:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyjPQ-0005xR-0T; Fri, 25 Nov 2022 19:51:08 -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 1oyjPO-0005wt-9Q for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 19:51:06 -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 1oyjPL-0005KL-T2 for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 19:51:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyjPK-0000Mx-0i for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 19:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Nov 2022 00:51:01 +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.16694238231375 (code B ref 58826); Sat, 26 Nov 2022 00:51:01 +0000 Original-Received: (at 58826) by debbugs.gnu.org; 26 Nov 2022 00:50:23 +0000 Original-Received: from localhost ([127.0.0.1]:37457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyjOh-0000M7-22 for submit@debbugs.gnu.org; Fri, 25 Nov 2022 19:50:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyjOe-0000Lu-NG for 58826@debbugs.gnu.org; Fri, 25 Nov 2022 19:50:21 -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 1oyjOZ-00050m-E2; Fri, 25 Nov 2022 19:50:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=ACrgT8rRk0n2rLnGzxVHTQR/JwOEhO2Skd68g0zwmUE=; b=d9SqxklhFPyQ bk4eC7aWLut6VKaWwdwdV4LISepLcdHbaJ48WtXqF82Y3e6s9bvkh+URFes8FnQqS81kTGIVuXpel Rgydc//P6pZibzEfPrbaq7uMF7yTd72C44nKGwnAv0p6o/hU6ZI3wwOAwpzV7mSgsYCeIajLjjXzI IMDmOa+/cEDj4OSlZS7+J1T8hf6se6S9WiH3zwuYjWstJHJQkDG0wkOTyTCjuFQ1YJCeuMRy8Ek4u StV2jUurhFiQ4xy7pP0kD2T7XULCt9B14Ow46r8YOeM57tTjAjsKu0zkp/Q6wkHAiOgOBWX7GEd1+ w6kOQb9R44+KpuTqZb0xYQ==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1oyjOW-0004MD-Vt; Fri, 25 Nov 2022 19:50:12 -0500 In-Reply-To: <87tu2pp8au.fsf@secretsauce.net> (message from Dima Kogan on Wed, 23 Nov 2022 15:17:49 -0800) 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:249029 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > Could we fix this by adding a new option to GDB to specify the working > > directory? > This exists: you can "gdb --cd DIR" I figured there would be one. However, is that what we want in this case? Do we want GDB to run with a different working directory, or only to find the core file in that directory? > But that doesn't matter: this is a gud issue. The complaint was that > running "gdb ARGS" in a shell sometimes doesn't do the same thing as M-x > gud "gdb ARGS", even with the same ARGS The question is, why not fix this with a change in GUD? People were talking about an obstacle to doing so, but I didn't see a clear statement of what the obstacle was. It seemed to be about whether GUD can tell GDB to find the core dump in the right place. If --cd enables GDB to find the core dump in the right place, why not make GUD send that argument? Does that fail to do the job right? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)