GNU bug report logs - #1490
23.0.60; C-d sends "\n" while debugging with gdb in Emacs

Previous Next

Package: emacs;

Reported by: "Joseph Yen" <joseph.yen <at> gmail.com>

Date: Thu, 4 Dec 2008 14:30:02 UTC

Severity: normal

Tags: wontfix

Found in version 23.0.60

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 1490 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: nickrob <at> snap.net.nz (Nick Roberts)
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 1490 <at> debbugs.gnu.org
Subject: Re: Re: bug#1490: 23.0.60; C-d sends "\n" while debugging with gdb in Emacs
Date: Thu, 16 Apr 2009 21:15:24 +1200
I can't begin to imagine where one would do something like:

  (gdb) set var retp = fgets(buf, 32, stdin)

in GDB.  If I do this from the command line I get:

  Program received signal SIGSEGV, Segmentation fault.
  0x00007ffff7852522 in fgets () from /lib/libc.so.6
  0x00007ffff7852522 <fgets+50>:	mov    (%rdx),%eax
  ...

I can get

  (gdb) set var reti = getchar()

to work as described.  The proposed patch might be the right thing to do but,
unless Joseph Yen can give a compelling reason as to why someone would
generally type something like this, I intend to leave it as it is until after
the release as I am unsure whether it will have unintended side effects.

-- 
Nick




This bug report was last modified 13 years and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.