unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1490: Re: bug#1490: 23.0.60; C-d sends "\n" while debugging with gdb in Emacs
@ 2009-04-16  4:23 Chong Yidong
  2009-04-16  9:15 ` Nick Roberts
  0 siblings, 1 reply; 2+ messages in thread
From: Chong Yidong @ 2009-04-16  4:23 UTC (permalink / raw)
  To: Nick Roberts; +Cc: 1490

Hi Nick,

Could you review the patch in Bug#1490?  Thanks.

http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1490






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#1490: Re: bug#1490: 23.0.60; C-d sends "\n" while debugging with gdb in Emacs
  2009-04-16  4:23 bug#1490: Re: bug#1490: 23.0.60; C-d sends "\n" while debugging with gdb in Emacs Chong Yidong
@ 2009-04-16  9:15 ` Nick Roberts
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Roberts @ 2009-04-16  9:15 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 1490

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






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-16  9:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16  4:23 bug#1490: Re: bug#1490: 23.0.60; C-d sends "\n" while debugging with gdb in Emacs Chong Yidong
2009-04-16  9:15 ` Nick Roberts

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).