🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #833

gdb 3.5 i386-sv32 command line editor "bug"

#833
From: James Van Artsdalen
Date: Sun, 11 Feb 1990 19:40
35 lines
1310 bytes
When running gdb under emacs through a pty, stdout on my system is
buffered.  gdb needs to flush stdout.


/usr3/src/gdb-3.5/readline> rcsdiff -c readline.c
RCS file: RCS/readline.c,v
retrieving revision 1.1
diff -c -r1.1 readline.c
*** /tmp/,RCSt1a05761	Sun Feb 11 13:39:00 1990
--- readline.c	Thu Feb  8 23:00:40 1990
***************
*** 304,311 ****
  
    if (!readline_echoing_p)
      {
!       if (rl_prompt)
  	fprintf (out_stream, "%s", rl_prompt);
      }
    else
      {
--- 304,313 ----
  
    if (!readline_echoing_p)
      {
!       if (rl_prompt) {
  	fprintf (out_stream, "%s", rl_prompt);
+ 	fflush (out_stream);
+       }
      }
    else
      {
/usr3/src/gdb-3.5/readline> 
-- 
James R. Van Artsdalen          james@bigtex.cactus.org   "Live Free or Die"
Dell Computer Co    9505 Arboretum Blvd Austin TX 78759         512-338-8789
Technical Details
Message-ID: <29661@bigtex.cactus.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!texbell!chinacat!bigtex!james

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!texbell!chinacat!bigtex!james
From: james@bigtex.cactus.org (James Van Artsdalen)
Newsgroups: gnu.gdb.bug
Subject: gdb 3.5 i386-sv32 command line editor "bug"
Message-ID: <29661@bigtex.cactus.org>
Date: 11 Feb 90 19:40:17 GMT
Organization: Institute of Applied Cosmology, Austin TX
Lines: 35