Changeset 83644e9 in rtems


Ignore:
Timestamp:
Oct 31, 2007, 3:46:35 PM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
724eab7a
Parents:
91a492a2
Message:

Add hacks to get erc32 building

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/patches/gdb-6.7.1-rtems4.9-20071031.diff

    r91a492a2 r83644e9  
    1 diff -uNr gdb-6.7.1.orig/bfd/sysdep.h gdb-6.7.1/bfd/sysdep.h
    2 --- gdb-6.7.1.orig/bfd/sysdep.h 2007-07-03 16:26:42.000000000 +0200
    3 +++ gdb-6.7.1/bfd/sysdep.h      2007-10-31 06:08:42.000000000 +0100
    4 @@ -136,7 +136,7 @@
    5  #endif
    6  
    7  #if !HAVE_DECL_STRSTR
    8 -extern char *strstr ();
    9 +/* extern char *strstr (); */
    10  #endif
    11  
    12  #ifdef HAVE_FTELLO
    131diff -uNr gdb-6.7.1.orig/sim/erc32/erc32.c gdb-6.7.1/sim/erc32/erc32.c
    142--- gdb-6.7.1.orig/sim/erc32/erc32.c    1999-04-16 03:35:00.000000000 +0200
    15 +++ gdb-6.7.1/sim/erc32/erc32.c 2007-10-31 06:08:42.000000000 +0100
    16 @@ -413,7 +413,7 @@
     3+++ gdb-6.7.1/sim/erc32/erc32.c 2007-10-31 12:27:54.000000000 +0100
     4@@ -24,6 +24,7 @@
     5 
     6 #include <sys/types.h>
     7 #include <stdio.h>
     8+#include <string.h>
     9 #include <termios.h>
     10 #include <sys/fcntl.h>
     11 #include <sys/file.h>
     12@@ -413,7 +414,7 @@
    1713     if (rom8) mec_memcfg &= ~0x20000;
    1814     else mec_memcfg |= 0x20000;
     
    2319 
    2420     if (sparclite_board) {
     21@@ -1659,7 +1660,7 @@
     22        errmec = 0;
     23        return(1);
     24     }
     25-#endif;
     26+#endif
     27 
     28     if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
     29        fetch_bytes (asi, &ramb[addr & mem_rammask], data, sz);
     30@@ -1736,7 +1737,7 @@
     31        errmec = 0;
     32        return(1);
     33     }
     34-#endif;
     35+#endif
     36 
     37     if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
     38        if (mem_accprot) {
    2539diff -uNr gdb-6.7.1.orig/sim/erc32/exec.c gdb-6.7.1/sim/erc32/exec.c
    2640--- gdb-6.7.1.orig/sim/erc32/exec.c     2005-03-07 12:09:05.000000000 +0100
     
    4458 #endif
    4559     if (sregs->fpstate == FP_EXC_PE) {
     60diff -uNr gdb-6.7.1.orig/sim/erc32/Makefile.in gdb-6.7.1/sim/erc32/Makefile.in
     61--- gdb-6.7.1.orig/sim/erc32/Makefile.in        2007-08-24 16:28:35.000000000 +0200
     62+++ gdb-6.7.1/sim/erc32/Makefile.in     2007-10-31 16:17:05.000000000 +0100
     63@@ -18,8 +18,10 @@
     64 
     65 ## COMMON_PRE_CONFIG_FRAG
     66 
     67-TERMCAP_LIB = @TERMCAP@
     68-READLINE_LIB = @READLINE@
     69+# TERMCAP_LIB = @TERMCAP_LIB@
     70+TERMCAP_LIB = -ltinfo
     71+# READLINE_LIB = @READLINE_LIB@
     72+READLINE_LIB = -lreadline
     73 
     74 SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
     75 SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
Note: See TracChangeset for help on using the changeset viewer.