From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: 3650@debbugs.gnu.org, jasonr@gnu.org
Subject: bug#3650: M-x gdb unusable on Windows
Date: Sat, 02 Nov 2019 10:41:05 +0200 [thread overview]
Message-ID: <83bltuk6vy.fsf@gnu.org> (raw)
In-Reply-To: <87zhheg6fc.fsf@marxist.se> (message from Stefan Kangas on Sat, 02 Nov 2019 07:04:39 +0100)
> From: Stefan Kangas <stefan@marxist.se>
> Date: Sat, 02 Nov 2019 07:04:39 +0100
> Cc: 3650@debbugs.gnu.org
>
> Jason Rumney <jasonr@gnu.org> writes:
>
> > I just tried it, and it seems to be even worse than I remembered.
> >
> > Problem 1 is that the default directory of gdb is the directory where the Emacs
> > executable is even though I started it from the source directory and specified
> > oo/i386/emacs.exe as the executable to debug. This means that .gdbinit needs to
> > be "source"d in manually. In addition, gud is unable to find source files that
> > are not already being visited:
> >
> > (gdb) break fontset_find_font
> > Breakpoint 1 at 0x10f9dd7: file fontset.c, line 527.
> > (gdb) list :1
> > No source file named in loaded symbols.
> >
> >
> > Problem 2 is that Emacs output (including the results of pp and pr) is
> > redirected to a buffer entitled *input/output of emacs.exe*, or at least
> > that is what the intention appears to be. That buffer is populated as follows
> > when gdb starts, and never updates:
> >
> > c:\GnuWin32\bin\sleep.exe: cannot read realtime clock: Invalid argument
> > Process gdb-inferior exited abnormally with code 1
> >
> > Problem 3 is that there appears to be a menu toggle for disabling this output
> > redirection, but it does not function. Instead, I see this in *Messages*:
> >
> > Symbol's function definition is void: gdb-use-separate-io-buffer
> >
> >
> > Problem 4 is that enabling GUD tooltips results messages like the following:
> >
> > error in process filter: Args out of range: "", 0, -1 [2 times]
> >
> >
> > Problem 5 is the general slowness. This one is probably down to Windows poor
> > subprocess and pipe support, but the rest seem to be real problems within
> > gud/gdb-mi.
>
> This was reported 10 years ago.
>
> Is this still an issue on modern versions of Emacs?
Most of the problems are gone, not in the least because we use
gdb-mi.el nowadays. But some are still there, although I don't see
what we can do about that:
. the initial directory is still where the binary lives, but that is
not Windows specific: Emacs behaves like that on Posix platforms
as well
. pp and other similar commands in .gdbinit don't work, but that's
AFAIU because gdb-mi cannot separate the GDB output from the
program's output on MS-Windows
All the other problems are gone, and the corresponding features work
as expected.
next prev parent reply other threads:[~2019-11-02 8:41 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4AAF9D6C.1040303@gnu.org>
2009-05-04 18:26 ` bug#3208: 23.0.93; Memory full / crash when displaying lots of characters from a large font (like Arial Unicode or Code2000) which is not explicitly selected (on Win32) Michael Schierl
2009-05-05 15:25 ` Jason Rumney
2009-05-05 15:46 ` Jason Rumney
2009-05-19 2:13 ` Kenichi Handa
2009-06-18 5:29 ` Jason Rumney
2009-06-22 5:47 ` Jason Rumney
2009-06-22 11:22 ` Kenichi Handa
2009-06-22 11:51 ` Jason Rumney
2009-06-22 12:51 ` Kenichi Handa
2009-06-22 13:05 ` Jason Rumney
2009-06-22 14:01 ` bug#3650: M-x gdb unusable on Windows Jason Rumney
2009-06-23 1:59 ` Kenichi Handa
2009-06-23 3:37 ` Dan Nicolaescu
2009-06-23 6:22 ` Nick Roberts
2009-06-23 7:38 ` Kenichi Handa
2009-06-23 6:09 ` Nick Roberts
2009-06-23 7:59 ` Jason Rumney
2009-06-23 13:22 ` Kenichi Handa
2009-06-23 17:08 ` Dan Nicolaescu
2009-06-25 5:50 ` Kenichi Handa
2009-06-25 6:13 ` Nick Roberts
2009-06-25 7:51 ` Kenichi Handa
2019-11-02 6:04 ` Stefan Kangas
2019-11-02 8:41 ` Eli Zaretskii [this message]
2022-04-13 0:40 ` Lars Ingebrigtsen
2009-06-24 4:26 ` bug#3208: 23.0.93; Memory full / crash when displaying lots of characters from a large font (like Arial Unicode or Code2000) which is not explicitly selected (on Win32) Kenichi Handa
2009-06-24 10:37 ` Jason Rumney
2009-06-24 11:45 ` Kenichi Handa
2009-06-24 10:43 ` Jason Rumney
2009-06-24 11:55 ` Kenichi Handa
[not found] ` <4A422909.9060800@gnu.org>
2009-06-25 8:10 ` Kenichi Handa
2009-06-25 13:21 ` Jason Rumney
2009-06-26 1:26 ` Kenichi Handa
2009-06-26 5:54 ` Jason Rumney
2009-06-26 13:12 ` Kenichi Handa
2009-07-02 12:13 ` Kenichi Handa
2009-07-02 21:36 ` Stefan Monnier
2009-07-03 2:11 ` Kenichi Handa
2009-09-15 14:05 ` bug#3208: marked as done (23.0.93; Memory full / crash when displaying lots of characters from a large font (like Arial Unicode or Code2000) which is not explicitly selected (on Win32)) Emacs bug Tracking System
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=83bltuk6vy.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=3650@debbugs.gnu.org \
--cc=jasonr@gnu.org \
--cc=stefan@marxist.se \
/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.