[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ncurses Foiled Again



I received another bug report about a non working gdb.  It appears RedHat
6.2 also uses the new ncurses.  Since the bug reports are likely to up in
the near future I hacked out a quick fix.

Dennis Payne
dulsi@identicalsoftware.com


--- we_debug.c.orig	Wed Mar 29 23:15:25 2000
+++ we_debug.c	Tue Apr 11 21:26:08 2000
@@ -1855,7 +1855,9 @@
  {
   while((ret = e_d_line_read(wfildes[0], eing, 256, 0, 0)) == 2 ||
     !eing[0] || (!e_deb_type && prsw && ((len = (strlen(eing)-12)) < 0 ||
-    strcmp(eing + len, e_d_msg[ERR_CONTINUE]))))
+    strcmp(eing + len, e_d_msg[ERR_CONTINUE]))) ||
+    (e_d_swtch < 3 && ((!e_deb_type && strncmp(e_d_msg[ERR_STARTPROG],eing, 17)) ||
+    (e_deb_type == 2 && strncmp("Running:",eing, 8)))))
   {
    if (ret == 2)
     e_d_error(eing);