gdb-5.3 patches for SCO OpenServer 5.0.6 / gcc-3.2.3

Bill Campbell <[email protected]> Sun, 11 May 2003 17:58:32 -0700
Newsgroups gmane.comp.gdb.bugs.general
Message-ID <[email protected]>
William Bader posted a patch to gdb-5.3 12/20/2002.  I tried it today when
building gdb on an OpenServer 5.0.6a system using gcc-3.2.3 for use with
openpkg.org.  The attached patch is very similar to the previous, but fixes
a prototype mismatch error.

Bill
--
INTERNET:   [email protected]  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

There are three kinds of men. The ones that learn by reading. The few who
learn by observation.  The rest of them have to pee on the electric fence
for themselves. -- Will Rogers

_______________________________________________
Bug-gdb mailing list
[email protected]
http://mail.gnu.org/mailman/listinfo/bug-gdb
gdb-5.3.sco_sv.patch (application/x-patch, 1.1 KB)
diff -uNr /csoft/RPM/TMP/gdb-5.3.20030324/gdb/config/i386/nm-i386sco.h ./gdb/config/i386/nm-i386sco.h
--- /csoft/RPM/TMP/gdb-5.3.20030324/gdb/config/i386/nm-i386sco.h	Thu Aug 15 12:34:58 2002
+++ ./gdb/config/i386/nm-i386sco.h	Sun May 11 09:45:56 2003
@@ -21,9 +21,9 @@
    Boston, MA 02111-1307, USA.  */
 
 #define REGISTER_U_ADDR(addr, blockend, regno) \
-	(addr) = i386_register_u_addr ((blockend),(regno));
+	(addr) = register_u_addr ((blockend),(regno));
 
-extern int i386_register_u_addr (int, int);
+extern CORE_ADDR register_u_addr (CORE_ADDR, int);
 
 /* When calling functions on SCO, sometimes we get an error writing some
    of the segment registers.  This would appear to be a kernel
diff -uNr /csoft/RPM/TMP/gdb-5.3.20030324/gdb/utils.c ./gdb/utils.c
--- /csoft/RPM/TMP/gdb-5.3.20030324/gdb/utils.c	Tue Nov 19 16:09:47 2002
+++ ./gdb/utils.c	Sun May 11 09:42:06 2003
@@ -2552,8 +2552,8 @@
     if (rp == NULL)
       rp = filename;
     return xstrdup (rp);
-  }
 # endif
+  }
 #endif /* HAVE_REALPATH */
 
   /* Method 2: The host system (i.e., GNU) has the function