NetBSD Problem Report #7685
Received: (qmail 19084 invoked from network); 1 Jun 1999 14:30:13 -0000
Message-Id: <199906011429.XAA00743@sibyl.chez-dall.org.au>
Date: Tue, 1 Jun 1999 23:59:13 +0930 (CST)
From: ian.dall@dsto.defence.gov.au
Reply-To: ian.dall@dsto.defence.gov.au
To: gnats-bugs@gnats.netbsd.org
Subject: Gdb outputs ^M in emacs buffer
X-Send-Pr-Version: 3.95
>Number: 7685
>Category: bin
>Synopsis: GDB 4.17 outputs control M charactes when run in an emacs buffer
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: sommerfeld
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 01 07:35:01 +0000 1999
>Closed-Date: Mon Aug 09 01:08:40 +0000 1999
>Last-Modified: Mon Aug 09 01:09:04 +0000 1999
>Originator: Ian Dall
>Release: <NetBSD-current source date> 1.4
>Organization:
>Environment:
System: NetBSD sibyl.chez-dall.org.au 1.4C NetBSD 1.4C (SIBYL) #1: Tue Jun 1 15:34:02 CST 1999 ian@sibyl.chez-dall.org.au:/usr3/netbsd-1.2/lsrc/sys/arch/pc532/compile/SIBYL pc532
>Description:
When gdb is run inside emacs, it litters the buffer with control M's which
are displayed as ^M. This seems to be due to the pseudo tty mode being
set to onlcr. If a shell script which does a stty is run in place of gdb
it can be seen that onlcr is *not* on. ie, for some reason, gdb it turning
it on itself.
gdb 4.16.95 build from FSF sources does not have this problem.
>How-To-Repeat:
emacs
M-x gdb
help
>Fix:
None, but it is driving me nuts!
>Release-Note:
>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: ian.dall@dsto.defence.gov.au, gnats-admin@netbsd.org,
gnats-bugs@gnats.netbsd.org, gnats@netbsd.org (GNATS Management)
Cc: Subject: Re: bin/7685: Gdb outputs ^M in emacs buffer
Date: Tue, 1 Jun 1999 11:12:09 -0400
On Jun 1, 11:59pm, ian.dall@dsto.defence.gov.au (ian.dall@dsto.defence.gov.au) wrote:
-- Subject: bin/7685: Gdb outputs ^M in emacs buffer
Probably libedit should be modified so that it does not turn command
line editing on if we are running under emacs. That could be done like:
if ((tcp = getenv("TERM")) != NULL)
editing = strcmp(tcp, "emacs") != 0 && strcmp(tcp, "wm") != 0;
else
editing = (tcp = getenv("EMACS")) == NULL || strcmp(tcp, "t") != 0;
christos
State-Changed-From-To: open->feedback
State-Changed-By: sommerfeld
State-Changed-When: Sun Aug 1 18:02:33 PDT 1999
State-Changed-Why:
Committed fix to libedit in -current
Responsible-Changed-From-To: bin-bug-people->sommerfeld
Responsible-Changed-By: sommerfeld
Responsible-Changed-When: Sun Aug 1 18:02:33 PDT 1999
Responsible-Changed-Why:
I made the fix
State-Changed-From-To: feedback->closed
State-Changed-By: lukem
State-Changed-When: Sun Aug 8 18:08:40 PDT 1999
State-Changed-Why:
closing pr per feedback from submitter
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.