mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 00:52:16 +08:00
2011-03-15 Andreas Tobler <andreast@fgznet.ch>
* gdb.base/jit-main.c: Define ElfW for non glibc elf targets.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2011-03-15 Andreas Tobler <andreast@fgznet.ch>
|
||||||
|
|
||||||
|
* gdb.base/jit-main.c: Define ElfW for non glibc elf targets.
|
||||||
|
|
||||||
2011-03-15 Phil Muldoon <pmuldoon@redhat.com>
|
2011-03-15 Phil Muldoon <pmuldoon@redhat.com>
|
||||||
|
|
||||||
* lib/gdb.exp (gdb_unload): Add another termination case.
|
* lib/gdb.exp (gdb_unload): Add another termination case.
|
||||||
|
@ -29,6 +29,19 @@
|
|||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
/* ElfW is coming from linux. On other platforms it does not exist.
|
||||||
|
Let us define it here. */
|
||||||
|
#ifndef ElfW
|
||||||
|
# if (defined (_LP64) || defined (__LP64__))
|
||||||
|
# define WORDSIZE 64
|
||||||
|
# else
|
||||||
|
# define WORDSIZE 32
|
||||||
|
# endif /* _LP64 || __LP64__ */
|
||||||
|
#define ElfW(type) _ElfW (Elf, WORDSIZE, type)
|
||||||
|
#define _ElfW(e,w,t) _ElfW_1 (e, w, _##t)
|
||||||
|
#define _ElfW_1(e,w,t) e##w##t
|
||||||
|
#endif /* !ElfW */
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
JIT_NOACTION = 0,
|
JIT_NOACTION = 0,
|
||||||
|
Reference in New Issue
Block a user