mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
Make sure __LITTLE_ENDIAN/__BIG_ENDIAN are defined in libunwind-frame.c
These macros do not seem to exist on ia64-hpux. gdb/ChangeLog: * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if not already defined.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-01-13 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
|
||||||
|
not already defined.
|
||||||
|
|
||||||
2011-01-13 Joel Brobecker <brobecker@adacore.com>
|
2011-01-13 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* ia64-tdep.c (ia64_struct_type_p): New function.
|
* ia64-tdep.c (ia64_struct_type_p): New function.
|
||||||
|
@ -41,6 +41,16 @@
|
|||||||
|
|
||||||
#include "complaints.h"
|
#include "complaints.h"
|
||||||
|
|
||||||
|
/* The following two macros are normally defined in <endian.h>.
|
||||||
|
But systems such as ia64-hpux do not provide such header, so
|
||||||
|
we just define them here if not already defined. */
|
||||||
|
#ifndef __LITTLE_ENDIAN
|
||||||
|
#define __LITTLE_ENDIAN 1234
|
||||||
|
#endif
|
||||||
|
#ifndef __BIG_ENDIAN
|
||||||
|
#define __BIG_ENDIAN 4321
|
||||||
|
#endif
|
||||||
|
|
||||||
static int libunwind_initialized;
|
static int libunwind_initialized;
|
||||||
static struct gdbarch_data *libunwind_descr_handle;
|
static struct gdbarch_data *libunwind_descr_handle;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user