From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40271: 26.3; gdb-mode fails to initialize if the target executable is built without symbols Date: Sat, 28 Mar 2020 15:11:27 +0300 Message-ID: <83mu807k7k.fsf@gnu.org> References: <87mu80k88j.fsf@delllaptop.lockywolf.net> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="71464"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40271@debbugs.gnu.org To: Vladimir Nikishkin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 28 13:12:10 2020 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 1jIAJu-000IU7-0L for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Mar 2020 13:12:10 +0100 Original-Received: from localhost ([::1]:52660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIAJs-0005p6-Pt for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Mar 2020 08:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48371) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIAJn-0005p0-67 for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 08:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIAJm-0002qG-9d for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 08:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55971) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIAJm-0002qA-6F for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 08:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIAJm-0002t1-1l for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 08:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Mar 2020 12:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40271 X-GNU-PR-Package: emacs Original-Received: via spool by 40271-submit@debbugs.gnu.org id=B40271.158539749011039 (code B ref 40271); Sat, 28 Mar 2020 12:12:02 +0000 Original-Received: (at 40271) by debbugs.gnu.org; 28 Mar 2020 12:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:33711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIAJG-0002rz-8K for submit@debbugs.gnu.org; Sat, 28 Mar 2020 08:11:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIAJE-0002rl-Tt for 40271@debbugs.gnu.org; Sat, 28 Mar 2020 08:11:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIAJ9-0002dE-RR; Sat, 28 Mar 2020 08:11:23 -0400 Original-Received: from [176.228.60.248] (port=3913 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jIAJ9-0007w4-5a; Sat, 28 Mar 2020 08:11:23 -0400 In-Reply-To: <87mu80k88j.fsf@delllaptop.lockywolf.net> (message from Vladimir Nikishkin on Sat, 28 Mar 2020 19:51:40 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:177805 Archived-At: > From: Vladimir Nikishkin > Date: Sat, 28 Mar 2020 19:51:40 +0800 > > The way to reproduce would be the following: > 1)printf "program main\nend" > test.f90 > 2)gfortran test.f90 > 3)emacs -q > 4)M-: (setq gdb-many-windows t) RET > 5)gdb RET a.out RET > > Observe that gdb-mode fails to initialize. I cannot reproduce this on my system, debugging one of the programs in the public /usr/bin/ directory (which are all stripped of the debugging symbols). > This happens because in gdb-mi.el.gz, line 4689, gdb-main-file gets > a completely unrelated .S file name relative to the directory where > distro authors compile glibc. Please show all the related details (what regexp search fails, what does it find, and what it ought to find instead), since otherwise it will be very hard to fix this problem.