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:30:20 +0300 Message-ID: <83k1347jc3.fsf@gnu.org> References: <87mu80k88j.fsf@delllaptop.lockywolf.net> <83mu807k7k.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="18217"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40271@debbugs.gnu.org To: lockywolf@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 28 13:31:17 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 1jIAcP-0004fn-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Mar 2020 13:31:17 +0100 Original-Received: from localhost ([::1]:52776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIAcO-0001TD-7r for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Mar 2020 08:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50203) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIAcA-0001RX-T9 for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 08:31:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIAc9-0007wd-VK for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 08:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIAc9-0007wN-RD for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 08:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIAc9-0003Pl-Ma for bug-gnu-emacs@gnu.org; Sat, 28 Mar 2020 08:31:01 -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:31:01 +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.158539862213063 (code B ref 40271); Sat, 28 Mar 2020 12:31:01 +0000 Original-Received: (at 40271) by debbugs.gnu.org; 28 Mar 2020 12:30:22 +0000 Original-Received: from localhost ([127.0.0.1]:33720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIAbW-0003Oc-4g for submit@debbugs.gnu.org; Sat, 28 Mar 2020 08:30:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIAbU-0003OP-PF for 40271@debbugs.gnu.org; Sat, 28 Mar 2020 08:30:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIAbP-0007aO-L9; Sat, 28 Mar 2020 08:30:15 -0400 Original-Received: from [176.228.60.248] (port=1095 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jIAbO-0007TV-K5; Sat, 28 Mar 2020 08:30:15 -0400 In-Reply-To: <83mu807k7k.fsf@gnu.org> (message from Eli Zaretskii on Sat, 28 Mar 2020 15:11:27 +0300) 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:177806 Archived-At: > Date: Sat, 28 Mar 2020 15:11:27 +0300 > From: Eli Zaretskii > Cc: 40271@debbugs.gnu.org > > > 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. Also, if you start GDB from the shell prompt, like this: $ gdb -i=mi ./a.out and then issue the -file-list-exec-source-file command, what do you see?