Re: gdb patch to suppress empty lines, re-visited

David Carlton
2002-12-13T20:47:49Z

On Fri, 13 Dec 2002 11:30:55 -0800, Per Bothner <per@bothner.com> said:

> A few people have expresses themselves in favor, and none
> have been opposed. I don't know if that counts as a consensus ...

I don't know if I like it or not, and I don't think I'll know until
I've actually tried it. My first reaction is slightly negative, and
I'm not at all sure how well it will work with XEmacs's GDB mode: if I
do a bunch of steps through a function, I get output like this:

(gdb) s
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)

because the mode isn't showing me the source code information in that
buffer (since it's available in another buffer), and I can't imagine
your patch doing anything good to that output. (I have no idea what
GNU Emacs's GDB mode looks like: for some reason, XEmacs uses a
different (older?) one.) So if your patch would change the output in
this situation, I'm dubious. But maybe it wouldn't; I'm not sure if
the ISATTY (instream) guard would protect against this situation.

I guess if it doesn't affect the output under (X)Emacs then I don't
care one way or another because I'll never see its results.

David Carlton
carlton@math.stanford.edu