From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 15051-done@debbugs.gnu.org, ryan.johnson@cs.utoronto.ca
Subject: bug#15051: 24.3; gdb -mi: breakpoint with in non-existent source file spams terminal incessantly
Date: Tue, 15 Dec 2020 19:21:54 +0200 [thread overview]
Message-ID: <83y2hz9e8d.fsf@gnu.org> (raw)
In-Reply-To: <87tusz7xib.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 06 Dec 2020 16:41:16 +0100)
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 06 Dec 2020 16:41:16 +0100
> Cc: 15051@debbugs.gnu.org
>
> Thanks for the clear recipe to reproduce this bug. It is still present
> in Emacs 28, but has changed, and is now even worse, I think.
>
> First of all:
>
> >
> > 6. Execute the following commands in gdb:
> > b bar
> > start
> > n
> > n
> > fin
> > n
> > n
> > n
> > quit
>
> After "b bar", Emacs says:
>
> File /tmp/"/tmp/bar.c" is read-only on disk. Make buffer read-only, too? (y or n) n
>
> Then, it's these, as you point out:
>
> (gdb) b bar
> Breakpoint 1 at 0x117e: file bar.c, line 1.
> (gdb) list bar.c:1
> 1 bar.c: No such file or directory.
> start
> Temporary breakpoint 2 at 0x1139: file foo.c, line 4.
> Starting program: /tmp/bug
>
> Temporary breakpoint 2, main () at foo.c:4
> 4 puts("Thinking about calling bar");;
> (gdb) list bar.c:1
> 1 bar.c: No such file or directory.
> n
> 5 puts("Planning to call bar");
> (gdb) list bar.c:1
> 1 bar.c: No such file or directory.
> n
> 6 puts("About to call bar");
> (gdb) list bar.c:1
> 1 bar.c: No such file or directory.
> n
> 7 bar();
>
> And then I got 20K copies of:
>
> list bar.c:1
> 1 in bar.c
> list bar.c:1
> 1 in bar.c
> list bar.c:1
> 1 in bar.c
> list bar.c:1
> 1 in bar.c
>
> which continued until I killed gdb.
>
> So this problem is still present in Emacs 28, but is now somewhat
> different.
I've now fixed this on the master branch.
prev parent reply other threads:[~2020-12-15 17:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 13:47 bug#15051: 24.3; gdb -mi: breakpoint with in non-existent source file spams terminal incessantly Ryan Johnson
2020-12-06 15:41 ` Lars Ingebrigtsen
2020-12-15 17:21 ` Eli Zaretskii [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y2hz9e8d.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=15051-done@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=ryan.johnson@cs.utoronto.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).