all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: lockywolf@gmail.com
Cc: 40271@debbugs.gnu.org
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	[thread overview]
Message-ID: <83k1347jc3.fsf@gnu.org> (raw)
In-Reply-To: <83mu807k7k.fsf@gnu.org> (message from Eli Zaretskii on Sat, 28 Mar 2020 15:11:27 +0300)

> Date: Sat, 28 Mar 2020 15:11:27 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 40271@debbugs.gnu.org
> 
> > From: Vladimir Nikishkin <lockywolf@gmail.com>
> > 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?





  reply	other threads:[~2020-03-28 12:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-28 11:51 bug#40271: 26.3; gdb-mode fails to initialize if the target executable is built without symbols Vladimir Nikishkin
2020-03-28 12:11 ` Eli Zaretskii
2020-03-28 12:30   ` Eli Zaretskii [this message]
     [not found]     ` <CA+A2iZYfyhxWyJmNdGVm-4rxhVGXZD3zCU3kvCzU7uynxXxKQQ@mail.gmail.com>
2020-03-28 12:39       ` bug#40271: Fwd: " Vladimir Nikishkin
2020-03-28 13:12       ` Eli Zaretskii
2020-03-28 13:26         ` Vladimir Nikishkin
2020-03-28 13:27           ` Vladimir Nikishkin
2020-03-28 13:53           ` Eli Zaretskii
2022-01-31 18:43             ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83k1347jc3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=40271@debbugs.gnu.org \
    --cc=lockywolf@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.