GNU bug report logs -
#1045
OS X gdb buffers extra trailing ^M
Previous Next
Reported by: Nick Roberts <nickrob <at> snap.net.nz>
Date: Sun, 28 Sep 2008 07:35:04 UTC
Severity: normal
Tags: moreinfo
Done: Adrian Robert <adrian.b.robert <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1045 in the body.
You can then email your comments to 1045 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1045
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Nick Roberts <nickrob <at> snap.net.nz>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Using "configure --with-ns" on Leopard:
Using M-x gdb with gdb-many-values set to t, the associated buffers, e.g.,
stack locals etc. have an extra ^M at the end of each line.
--
Nick http://www.inet.net.nz/~nickrob
bug reassigned from package `emacs' to `emacs,ns'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Sun, 28 Sep 2008 17:50:02 GMT)
Full text and
rfc822 format available.
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
:
bug#1045
; Package
emacs,ns
.
Full text and
rfc822 format available.
Acknowledgement sent to
Adrian Robert <adrian.b.robert <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
.
Full text and
rfc822 format available.
Message #12 received at 1045 <at> emacsbugs.donarmstrong.com (full text, mbox):
> Using "configure --with-ns" on Leopard: Using M-x gdb with gdb-many-
> values set to t, the associated buffers, e.g., stack locals etc.
> have an extra ^M at the end of each line
If you get a chance, could you see if this happens with an X11 emacs
on OS X? I'm not aware of any code in the Cocoa port that would set
things relating to line endings (or anything else non-graphical -- it
just renders glyphs and faces given to it by xdisp.c), but perhaps
it's some kind of weird interaction with the system-detected line
ending format?
Or are there some line-ending-related settings that gud does.. hmm, I
see you are listed as the maintainer of progmodes/gdb-ui.el -- would
you know anything about this?
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
:
bug#1045
; Package
emacs,ns
.
Full text and
rfc822 format available.
Acknowledgement sent to
Nick Roberts <nickrob <at> snap.net.nz>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
.
Full text and
rfc822 format available.
Message #17 received at 1045 <at> emacsbugs.donarmstrong.com (full text, mbox):
Adrian Robert writes:
> > Using "configure --with-ns" on Leopard: Using M-x gdb with gdb-many-
> > values set to t, the associated buffers, e.g., stack locals etc.
> > have an extra ^M at the end of each line
>
> If you get a chance, could you see if this happens with an X11 emacs
> on OS X? I'm not aware of any code in the Cocoa port that would set
> things relating to line endings (or anything else non-graphical -- it
> just renders glyphs and faces given to it by xdisp.c), but perhaps
> it's some kind of weird interaction with the system-detected line
> ending format?
I can't test X11 emacs on OS X, but Carbon Emacs (as included in Leopard)
with a wrapper for running as a GUI works OK.
To be honest, Carbon Emacs generally seems to work better, e.g., mouse-2
works.
What does Cocoa Emacs (NextStep Emacs?) have that Carbon Emacs doesn't?
(I'm a Mac OS X novice).
> Or are there some line-ending-related settings that gud does.. hmm, I
> see you are listed as the maintainer of progmodes/gdb-ui.el -- would
> you know anything about this?
I don't think gdb-ui.el does anything special but the buffers might implicitly
misinterpret line-endings.
--
Nick http://www.inet.net.nz/~nickrob
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
:
bug#1045
; Package
emacs,ns
.
Full text and
rfc822 format available.
Acknowledgement sent to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
.
Full text and
rfc822 format available.
Message #22 received at 1045 <at> emacsbugs.donarmstrong.com (full text, mbox):
> What does Cocoa Emacs (NextStep Emacs?) have that Carbon Emacs doesn't?
> (I'm a Mac OS X novice).
A maintainer.
Stefan
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
:
bug#1045
; Package
emacs,ns
.
Full text and
rfc822 format available.
Acknowledgement sent to
Nick Roberts <nickrob <at> snap.net.nz>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
.
Full text and
rfc822 format available.
Message #27 received at 1045 <at> emacsbugs.donarmstrong.com (full text, mbox):
Adrian Robert writes:
> > Using "configure --with-ns" on Leopard: Using M-x gdb with gdb-many-
> > values set to t, the associated buffers, e.g., stack locals etc.
> > have an extra ^M at the end of each line
>
> If you get a chance, could you see if this happens with an X11 emacs
> on OS X? I'm not aware of any code in the Cocoa port that would set
> things relating to line endings (or anything else non-graphical -- it
> just renders glyphs and faces given to it by xdisp.c), but perhaps
> it's some kind of weird interaction with the system-detected line
> ending format?
I've done that now and can confirm that GDB related buffers have an extra ^M at
the end of each line with an X11 emacs too.
--
Nick http://www.inet.net.nz/~nickrob
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
:
bug#1045
; Package
emacs,ns
.
Full text and
rfc822 format available.
Acknowledgement sent to
Adrian Robert <adrian.b.robert <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com
.
Full text and
rfc822 format available.
Message #32 received at 1045 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Oct 20, 2008, at 4:02 AM, Nick Roberts wrote:
> Adrian Robert writes:
>>> Using "configure --with-ns" on Leopard: Using M-x gdb with gdb-many-
>>> values set to t, the associated buffers, e.g., stack locals etc.
>>> have an extra ^M at the end of each line
>>
>> If you get a chance, could you see if this happens with an X11 emacs
>> on OS X? I'm not aware of any code in the Cocoa port that would set
>> things relating to line endings (or anything else non-graphical -- it
>> just renders glyphs and faces given to it by xdisp.c), but perhaps
>> it's some kind of weird interaction with the system-detected line
>> ending format?
>
> I've done that now and can confirm that GDB related buffers have an
> extra ^M at
> the end of each line with an X11 emacs too.
OK, useful to know. What happens if you hit <Ret> in a gdb buffer --
do you get a ctrl-M then, or only when gdb itself (or gud?) outputs
something? If the former, it must be some setting for the buffer
itself, and we could track that down. If the latter, do you know
which function gud is using to write to the buffer?
Also, is gdb run through a shell, and if so, which one?
I tried to replicate this myself, but cannot. I did the following:
M-x gdb
<path-to-prog> <Ret>
The gdb buffer that results has no ctrl-m's, even if I run the
program. Could you provide a more precise recipe to induce the bug?
(Or, I'm wondering if it depends on the shell...)
thanks,
Adrian
Tags added: moreinfo
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Mon, 01 Dec 2008 21:55:05 GMT)
Full text and
rfc822 format available.
Changed bug title to `OS X gdb buffers extra trailing ^M' from `23.0.60; (Cocoa Emacs)'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Mon, 01 Dec 2008 21:55:05 GMT)
Full text and
rfc822 format available.
Reply sent
to
Adrian Robert <adrian.b.robert <at> gmail.com>
:
You have taken responsibility.
(Thu, 23 Jul 2009 14:20:06 GMT)
Full text and
rfc822 format available.
Notification sent
to
Nick Roberts <nickrob <at> snap.net.nz>
:
bug acknowledged by developer.
(Thu, 23 Jul 2009 14:20:06 GMT)
Full text and
rfc822 format available.
Message #41 received at 1045-done <at> emacsbugs.donarmstrong.com (full text, mbox):
Closing, caused by a bug in Apple's GDB, not an issue with FSF GDB,
hopefully the fix will be folded into Apple's eventually.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 19 Sep 2009 14:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 243 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.