From: storm@cua.dk (Kim F. Storm)
Subject: Re: gdbui hang
Date: 10 May 2004 08:22:58 +0200 [thread overview]
Message-ID: <m38yg0dcn1.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <buosme899jk.fsf@mcspd15.ucom.lsi.nec.co.jp>
Miles Bader <miles@lsi.nec.co.jp> writes:
> Sometimes (well, actually fairly often) the new fancy gdb mode hangs in
> a way that can't be interrupted, e.g.:
>
> ...
> Program exited normally.
> (gdb) break poc_startup
> Function "poc_startup" not defined.
> Make breakpoint pending on future shared library load? (y or [n]) n
>
> C-c C-c C-c C-c C-c C-c C-c C-c C-c C-c C-c C-c C-c C-c
>
> I'm not sure what other info is useful to debug this.
I have seen similar problems if I set a breakpoints at some location
(using C-x SPC) while the program is running; then I go to the gud
buffer and type C-c C-z to stop the process.
This seems to work, but sometimes it's like gud and gdb are no longer
in sync. If I try to delete the breakpoint (e.g. d 4) it gets worse.
If I then continue the program, c, I can no longer interrupt it with
C-c C-z.
Maybe you need to set two breakpoints at the same location (do C-x SPC
twice) to see this.
Sorry that I cannot be more precise.
>
> [A related problem is that if I kill the *gud-foo* buffer to try and
> recover from the hang, and then start another gdb process, it will often
> fail to work, saying `selecting deleted buffer' in a command I give. In
> general it's a good idea to recover gracefully if a buffer is deleted;
> the gdb mode probably shouldn't be keeping any session state outside of
> the gdb buffer itself -- i.e., try to make any state variables
> buffer-local in the gdb session buffer.]
I've seen this too -- to me it looks like there is a process filter still
running somewhere which tries to use a deleted buffer...
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2004-05-10 6:22 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-10 4:43 gdbui hang Miles Bader
2004-05-10 6:22 ` Kim F. Storm [this message]
2004-05-10 17:30 ` Nick Roberts
2004-05-10 18:16 ` Stefan Monnier
2004-05-10 18:42 ` Nick Roberts
2004-05-11 12:23 ` Richard Stallman
2004-05-11 12:49 ` Miles Bader
2004-05-11 20:25 ` Nick Roberts
2004-05-11 21:08 ` Miles Bader
2004-05-11 21:27 ` Nick Roberts
2004-05-11 21:40 ` Stefan Monnier
2004-05-10 17:41 ` Nick Roberts
2004-05-10 19:09 ` Stefan Monnier
2004-05-11 21:07 ` Nick Roberts
2004-05-11 21:37 ` Stefan Monnier
2004-05-11 22:43 ` Nick Roberts
2004-05-11 23:23 ` Stefan Monnier
2004-05-12 12:40 ` Kim F. Storm
2004-05-12 14:59 ` Stefan Monnier
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=m38yg0dcn1.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
/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).