gdb-5.3 patches for SCO OpenServer 5.0.6 / SCO cc

William Bader <[email protected]>
Newsgroups gmane.comp.gdb.bugs.general
Message-ID <[email protected]>
I made the changes below to build gdb-5.3 under
SCO OpenServer 3.2v5.0.6 using the SCO dev sys,

William Bader
http://williambader.com

--- gdb-5.3/gdb/config/i386/nm-i386sco.h-	Thu Aug 15 15:34:58 2002
+++ gdb-5.3/gdb/config/i386/nm-i386sco.h	Fri Dec 20 17:12:44 2002
@@ -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 int register_u_addr (int, int);
 
 /* When calling functions on SCO, sometimes we get an error writing some
    of the segment registers.  This would appear to be a kernel
--- gdb-5.3/gdb/utils.c-	Tue Nov 19 19:09:47 2002
+++ gdb-5.3/gdb/utils.c	Fri Dec 20 13:32:51 2002
@@ -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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.