This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cant cross compile gdb 7.2 _or_ 7.0.1 for a mipsel target board from a X86 PC.


It turned out that  tmp-tvals.h  was not being generated properly. So
I ran gentmap on a proper mips box and then am stuck here

Running igen.

The command in the make file is
        cd ../igen && $(MAKE)
        ../igen/igen \
                $(IGEN_TRACE) \
                -I $(srcdir) \
                -Werror \
                -Wnodiscard \
                -F 32,f -M mipsIV -N 0 \
                -G gen-direct-access \
                -G gen-zero-r0 \
                -B 32 \
                -H 31 \
                -i $(IGEN_INSN) \
                -o $(IGEN_DC) \
                -x \
                -n icache.h    -hc tmp-icache.h \
                -n icache.c    -c  tmp-icache.c \
                -n semantics.h -hs tmp-semantics.h \
                -n semantics.c -s  tmp-semantics.c \
                -n idecode.h   -hd tmp-idecode.h \
                -n idecode.c   -d  tmp-idecode.c \
                -n model.h     -hm tmp-model.h \
                -n model.c     -m  tmp-model.c \
                -n support.h   -hf tmp-support.h \
                -n support.c   -f  tmp-support.c \
                -n itable.h    -ht tmp-itable.h \
                -n itable.c    -t  tmp-itable.c \
                -n engine.h    -he tmp-engine.h \
                -n engine.c    -e  tmp-engine.c \
                -n irun.c      -r  tmp-irun.c
When i run igen with the following command on a mips box, i get the
following error "Must specify a decode table".

I have attached tmp-tmap.c &&  tmp-tvals.h, in case some else wants to
do the same and does not have access to a mipsel box.


Regards,
Harish Badrinath
/* Target value mapping utilities needed by the simulator and gdb.  */
/* This file is machine generated by gentmap.c.  */

#include <errno.h>
#include <fcntl.h>
#include "ansidecl.h"
#include "gdb/callback.h"
#include "targ-vals.h"

/* syscall mapping table */
CB_TARGET_DEFS_MAP cb_init_syscall_map[] = {
  { -1, -1 }
};

/* errno mapping table */
CB_TARGET_DEFS_MAP cb_init_errno_map[] = {
#ifdef E2BIG
  { E2BIG, TARGET_E2BIG },
#endif
#ifdef EACCES
  { EACCES, TARGET_EACCES },
#endif
#ifdef EADDRINUSE
  { EADDRINUSE, TARGET_EADDRINUSE },
#endif
#ifdef EADDRNOTAVAIL
  { EADDRNOTAVAIL, TARGET_EADDRNOTAVAIL },
#endif
#ifdef EADV
  { EADV, TARGET_EADV },
#endif
#ifdef EAFNOSUPPORT
  { EAFNOSUPPORT, TARGET_EAFNOSUPPORT },
#endif
#ifdef EAGAIN
  { EAGAIN, TARGET_EAGAIN },
#endif
#ifdef EALREADY
  { EALREADY, TARGET_EALREADY },
#endif
#ifdef EBADE
  { EBADE, TARGET_EBADE },
#endif
#ifdef EBADF
  { EBADF, TARGET_EBADF },
#endif
#ifdef EBADFD
  { EBADFD, TARGET_EBADFD },
#endif
#ifdef EBADMSG
  { EBADMSG, TARGET_EBADMSG },
#endif
#ifdef EBADR
  { EBADR, TARGET_EBADR },
#endif
#ifdef EBADRQC
  { EBADRQC, TARGET_EBADRQC },
#endif
#ifdef EBADSLT
  { EBADSLT, TARGET_EBADSLT },
#endif
#ifdef EBFONT
  { EBFONT, TARGET_EBFONT },
#endif
#ifdef EBUSY
  { EBUSY, TARGET_EBUSY },
#endif
#ifdef ECHILD
  { ECHILD, TARGET_ECHILD },
#endif
#ifdef ECHRNG
  { ECHRNG, TARGET_ECHRNG },
#endif
#ifdef ECOMM
  { ECOMM, TARGET_ECOMM },
#endif
#ifdef ECONNABORTED
  { ECONNABORTED, TARGET_ECONNABORTED },
#endif
#ifdef ECONNREFUSED
  { ECONNREFUSED, TARGET_ECONNREFUSED },
#endif
#ifdef ECONNRESET
  { ECONNRESET, TARGET_ECONNRESET },
#endif
#ifdef EDEADLK
  { EDEADLK, TARGET_EDEADLK },
#endif
#ifdef EDEADLOCK
  { EDEADLOCK, TARGET_EDEADLOCK },
#endif
#ifdef EDESTADDRREQ
  { EDESTADDRREQ, TARGET_EDESTADDRREQ },
#endif
#ifdef EDOM
  { EDOM, TARGET_EDOM },
#endif
#ifdef EDOTDOT
  { EDOTDOT, TARGET_EDOTDOT },
#endif
#ifdef EDQUOT
  { EDQUOT, TARGET_EDQUOT },
#endif
#ifdef EEXIST
  { EEXIST, TARGET_EEXIST },
#endif
#ifdef EFAULT
  { EFAULT, TARGET_EFAULT },
#endif
#ifdef EFBIG
  { EFBIG, TARGET_EFBIG },
#endif
#ifdef EHOSTDOWN
  { EHOSTDOWN, TARGET_EHOSTDOWN },
#endif
#ifdef EHOSTUNREACH
  { EHOSTUNREACH, TARGET_EHOSTUNREACH },
#endif
#ifdef EIDRM
  { EIDRM, TARGET_EIDRM },
#endif
#ifdef EINPROGRESS
  { EINPROGRESS, TARGET_EINPROGRESS },
#endif
#ifdef EINTR
  { EINTR, TARGET_EINTR },
#endif
#ifdef EINVAL
  { EINVAL, TARGET_EINVAL },
#endif
#ifdef EIO
  { EIO, TARGET_EIO },
#endif
#ifdef EISCONN
  { EISCONN, TARGET_EISCONN },
#endif
#ifdef EISDIR
  { EISDIR, TARGET_EISDIR },
#endif
#ifdef EL2HLT
  { EL2HLT, TARGET_EL2HLT },
#endif
#ifdef EL2NSYNC
  { EL2NSYNC, TARGET_EL2NSYNC },
#endif
#ifdef EL3HLT
  { EL3HLT, TARGET_EL3HLT },
#endif
#ifdef EL3RST
  { EL3RST, TARGET_EL3RST },
#endif
#ifdef ELBIN
  { ELBIN, TARGET_ELBIN },
#endif
#ifdef ELIBACC
  { ELIBACC, TARGET_ELIBACC },
#endif
#ifdef ELIBBAD
  { ELIBBAD, TARGET_ELIBBAD },
#endif
#ifdef ELIBEXEC
  { ELIBEXEC, TARGET_ELIBEXEC },
#endif
#ifdef ELIBMAX
  { ELIBMAX, TARGET_ELIBMAX },
#endif
#ifdef ELIBSCN
  { ELIBSCN, TARGET_ELIBSCN },
#endif
#ifdef ELNRNG
  { ELNRNG, TARGET_ELNRNG },
#endif
#ifdef ELOOP
  { ELOOP, TARGET_ELOOP },
#endif
#ifdef EMFILE
  { EMFILE, TARGET_EMFILE },
#endif
#ifdef EMLINK
  { EMLINK, TARGET_EMLINK },
#endif
#ifdef EMSGSIZE
  { EMSGSIZE, TARGET_EMSGSIZE },
#endif
#ifdef EMULTIHOP
  { EMULTIHOP, TARGET_EMULTIHOP },
#endif
#ifdef ENAMETOOLONG
  { ENAMETOOLONG, TARGET_ENAMETOOLONG },
#endif
#ifdef ENETDOWN
  { ENETDOWN, TARGET_ENETDOWN },
#endif
#ifdef ENETRESET
  { ENETRESET, TARGET_ENETRESET },
#endif
#ifdef ENETUNREACH
  { ENETUNREACH, TARGET_ENETUNREACH },
#endif
#ifdef ENFILE
  { ENFILE, TARGET_ENFILE },
#endif
#ifdef ENMFILE
  { ENMFILE, TARGET_ENMFILE },
#endif
#ifdef ENOANO
  { ENOANO, TARGET_ENOANO },
#endif
#ifdef ENOBUFS
  { ENOBUFS, TARGET_ENOBUFS },
#endif
#ifdef ENOCSI
  { ENOCSI, TARGET_ENOCSI },
#endif
#ifdef ENODATA
  { ENODATA, TARGET_ENODATA },
#endif
#ifdef ENODEV
  { ENODEV, TARGET_ENODEV },
#endif
#ifdef ENOENT
  { ENOENT, TARGET_ENOENT },
#endif
#ifdef ENOEXEC
  { ENOEXEC, TARGET_ENOEXEC },
#endif
#ifdef ENOLCK
  { ENOLCK, TARGET_ENOLCK },
#endif
#ifdef ENOLINK
  { ENOLINK, TARGET_ENOLINK },
#endif
#ifdef ENOMEM
  { ENOMEM, TARGET_ENOMEM },
#endif
#ifdef ENOMSG
  { ENOMSG, TARGET_ENOMSG },
#endif
#ifdef ENONET
  { ENONET, TARGET_ENONET },
#endif
#ifdef ENOPKG
  { ENOPKG, TARGET_ENOPKG },
#endif
#ifdef ENOPROTOOPT
  { ENOPROTOOPT, TARGET_ENOPROTOOPT },
#endif
#ifdef ENOSPC
  { ENOSPC, TARGET_ENOSPC },
#endif
#ifdef ENOSR
  { ENOSR, TARGET_ENOSR },
#endif
#ifdef ENOSTR
  { ENOSTR, TARGET_ENOSTR },
#endif
#ifdef ENOSYS
  { ENOSYS, TARGET_ENOSYS },
#endif
#ifdef ENOTBLK
  { ENOTBLK, TARGET_ENOTBLK },
#endif
#ifdef ENOTCONN
  { ENOTCONN, TARGET_ENOTCONN },
#endif
#ifdef ENOTDIR
  { ENOTDIR, TARGET_ENOTDIR },
#endif
#ifdef ENOTEMPTY
  { ENOTEMPTY, TARGET_ENOTEMPTY },
#endif
#ifdef ENOTSOCK
  { ENOTSOCK, TARGET_ENOTSOCK },
#endif
#ifdef ENOTSUP
  { ENOTSUP, TARGET_ENOTSUP },
#endif
#ifdef ENOTTY
  { ENOTTY, TARGET_ENOTTY },
#endif
#ifdef ENOTUNIQ
  { ENOTUNIQ, TARGET_ENOTUNIQ },
#endif
#ifdef ENXIO
  { ENXIO, TARGET_ENXIO },
#endif
#ifdef EOPNOTSUPP
  { EOPNOTSUPP, TARGET_EOPNOTSUPP },
#endif
#ifdef EPERM
  { EPERM, TARGET_EPERM },
#endif
#ifdef EPFNOSUPPORT
  { EPFNOSUPPORT, TARGET_EPFNOSUPPORT },
#endif
#ifdef EPIPE
  { EPIPE, TARGET_EPIPE },
#endif
#ifdef EPROCLIM
  { EPROCLIM, TARGET_EPROCLIM },
#endif
#ifdef EPROTO
  { EPROTO, TARGET_EPROTO },
#endif
#ifdef EPROTONOSUPPORT
  { EPROTONOSUPPORT, TARGET_EPROTONOSUPPORT },
#endif
#ifdef EPROTOTYPE
  { EPROTOTYPE, TARGET_EPROTOTYPE },
#endif
#ifdef ERANGE
  { ERANGE, TARGET_ERANGE },
#endif
#ifdef EREMCHG
  { EREMCHG, TARGET_EREMCHG },
#endif
#ifdef EREMOTE
  { EREMOTE, TARGET_EREMOTE },
#endif
#ifdef EROFS
  { EROFS, TARGET_EROFS },
#endif
#ifdef ESHUTDOWN
  { ESHUTDOWN, TARGET_ESHUTDOWN },
#endif
#ifdef ESOCKTNOSUPPORT
  { ESOCKTNOSUPPORT, TARGET_ESOCKTNOSUPPORT },
#endif
#ifdef ESPIPE
  { ESPIPE, TARGET_ESPIPE },
#endif
#ifdef ESRCH
  { ESRCH, TARGET_ESRCH },
#endif
#ifdef ESRMNT
  { ESRMNT, TARGET_ESRMNT },
#endif
#ifdef ESTALE
  { ESTALE, TARGET_ESTALE },
#endif
#ifdef ETIME
  { ETIME, TARGET_ETIME },
#endif
#ifdef ETIMEDOUT
  { ETIMEDOUT, TARGET_ETIMEDOUT },
#endif
#ifdef ETOOMANYREFS
  { ETOOMANYREFS, TARGET_ETOOMANYREFS },
#endif
#ifdef ETXTBSY
  { ETXTBSY, TARGET_ETXTBSY },
#endif
#ifdef EUNATCH
  { EUNATCH, TARGET_EUNATCH },
#endif
#ifdef EUSERS
  { EUSERS, TARGET_EUSERS },
#endif
#ifdef EWOULDBLOCK
  { EWOULDBLOCK, TARGET_EWOULDBLOCK },
#endif
#ifdef EXDEV
  { EXDEV, TARGET_EXDEV },
#endif
#ifdef EXFULL
  { EXFULL, TARGET_EXFULL },
#endif
  { 0, 0 }
};

/* open flags mapping table */
CB_TARGET_DEFS_MAP cb_init_open_map[] = {
#ifdef O_ACCMODE
  { O_ACCMODE, TARGET_O_ACCMODE },
#endif
#ifdef O_APPEND
  { O_APPEND, TARGET_O_APPEND },
#endif
#ifdef O_CREAT
  { O_CREAT, TARGET_O_CREAT },
#endif
#ifdef O_EXCL
  { O_EXCL, TARGET_O_EXCL },
#endif
#ifdef O_NOCTTY
  { O_NOCTTY, TARGET_O_NOCTTY },
#endif
#ifdef O_NONBLOCK
  { O_NONBLOCK, TARGET_O_NONBLOCK },
#endif
#ifdef O_RDONLY
  { O_RDONLY, TARGET_O_RDONLY },
#endif
#ifdef O_RDWR
  { O_RDWR, TARGET_O_RDWR },
#endif
#ifdef O_SYNC
  { O_SYNC, TARGET_O_SYNC },
#endif
#ifdef O_TRUNC
  { O_TRUNC, TARGET_O_TRUNC },
#endif
#ifdef O_WRONLY
  { O_WRONLY, TARGET_O_WRONLY },
#endif
  { -1, -1 }
};

/* Target header values needed by the simulator and gdb.  */
/* This file is machine generated by gentmap.c.  */

#ifndef TARG_VALS_H
#define TARG_VALS_H

/* syscall values */

/* errno values */
#define TARGET_E2BIG 7
#define TARGET_EACCES 13
#define TARGET_EADDRINUSE 112
#define TARGET_EADDRNOTAVAIL 125
#define TARGET_EADV 68
#define TARGET_EAFNOSUPPORT 106
#define TARGET_EAGAIN 11
#define TARGET_EALREADY 120
#define TARGET_EBADE 50
#define TARGET_EBADF 9
#define TARGET_EBADFD 81
#define TARGET_EBADMSG 77
#define TARGET_EBADR 51
#define TARGET_EBADRQC 54
#define TARGET_EBADSLT 55
#define TARGET_EBFONT 57
#define TARGET_EBUSY 16
#define TARGET_ECHILD 10
#define TARGET_ECHRNG 37
#define TARGET_ECOMM 70
#define TARGET_ECONNABORTED 113
#define TARGET_ECONNREFUSED 111
#define TARGET_ECONNRESET 104
#define TARGET_EDEADLK 45
#define TARGET_EDEADLOCK 56
#define TARGET_EDESTADDRREQ 121
#define TARGET_EDOM 33
#define TARGET_EDOTDOT 76
#define TARGET_EDQUOT 132
#define TARGET_EEXIST 17
#define TARGET_EFAULT 14
#define TARGET_EFBIG 27
#define TARGET_EHOSTDOWN 117
#define TARGET_EHOSTUNREACH 118
#define TARGET_EIDRM 36
#define TARGET_EINPROGRESS 119
#define TARGET_EINTR 4
#define TARGET_EINVAL 22
#define TARGET_EIO 5
#define TARGET_EISCONN 127
#define TARGET_EISDIR 21
#define TARGET_EL2HLT 44
#define TARGET_EL2NSYNC 38
#define TARGET_EL3HLT 39
#define TARGET_EL3RST 40
#define TARGET_ELBIN 75
#define TARGET_ELIBACC 83
#define TARGET_ELIBBAD 84
#define TARGET_ELIBEXEC 87
#define TARGET_ELIBMAX 86
#define TARGET_ELIBSCN 85
#define TARGET_ELNRNG 41
#define TARGET_ELOOP 92
#define TARGET_EMFILE 24
#define TARGET_EMLINK 31
#define TARGET_EMSGSIZE 122
#define TARGET_EMULTIHOP 74
#define TARGET_ENAMETOOLONG 91
#define TARGET_ENETDOWN 115
#define TARGET_ENETRESET 126
#define TARGET_ENETUNREACH 114
#define TARGET_ENFILE 23
#define TARGET_ENMFILE 89
#define TARGET_ENOANO 53
#define TARGET_ENOBUFS 105
#define TARGET_ENOCSI 43
#define TARGET_ENODATA 61
#define TARGET_ENODEV 19
#define TARGET_ENOENT 2
#define TARGET_ENOEXEC 8
#define TARGET_ENOLCK 46
#define TARGET_ENOLINK 67
#define TARGET_ENOMEM 12
#define TARGET_ENOMSG 35
#define TARGET_ENONET 64
#define TARGET_ENOPKG 65
#define TARGET_ENOPROTOOPT 109
#define TARGET_ENOSPC 28
#define TARGET_ENOSR 63
#define TARGET_ENOSTR 60
#define TARGET_ENOSYS 88
#define TARGET_ENOTBLK 15
#define TARGET_ENOTCONN 128
#define TARGET_ENOTDIR 20
#define TARGET_ENOTEMPTY 90
#define TARGET_ENOTSOCK 108
#define TARGET_ENOTSUP 134
#define TARGET_ENOTTY 25
#define TARGET_ENOTUNIQ 80
#define TARGET_ENXIO 6
#define TARGET_EOPNOTSUPP 95
#define TARGET_EPERM 1
#define TARGET_EPFNOSUPPORT 96
#define TARGET_EPIPE 32
#define TARGET_EPROCLIM 130
#define TARGET_EPROTO 71
#define TARGET_EPROTONOSUPPORT 123
#define TARGET_EPROTOTYPE 107
#define TARGET_ERANGE 34
#define TARGET_EREMCHG 82
#define TARGET_EREMOTE 66
#define TARGET_EROFS 30
#define TARGET_ESHUTDOWN 110
#define TARGET_ESOCKTNOSUPPORT 124
#define TARGET_ESPIPE 29
#define TARGET_ESRCH 3
#define TARGET_ESRMNT 69
#define TARGET_ESTALE 133
#define TARGET_ETIME 62
#define TARGET_ETIMEDOUT 116
#define TARGET_ETOOMANYREFS 129
#define TARGET_ETXTBSY 26
#define TARGET_EUNATCH 42
#define TARGET_EUSERS 131
#define TARGET_EWOULDBLOCK 11
#define TARGET_EXDEV 18
#define TARGET_EXFULL 52

/* open flag values */
#define TARGET_O_ACCMODE 0x3
#define TARGET_O_APPEND 0x8
#define TARGET_O_CREAT 0x200
#define TARGET_O_EXCL 0x800
#define TARGET_O_NOCTTY 0x8000
#define TARGET_O_NONBLOCK 0x4000
#define TARGET_O_RDONLY 0x0
#define TARGET_O_RDWR 0x2
#define TARGET_O_SYNC 0x2000
#define TARGET_O_TRUNC 0x400
#define TARGET_O_WRONLY 0x1

#endif /* TARG_VALS_H */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]