summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-09 09:05:14 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-09 09:05:14 +0100
commitb5a4b156fac4363decc662a0b4373702dd489d16 (patch)
treec421ea7dd4f78aa46c29320c600739a2313d28fb /tools
parentaff8c471580f91e38aa8e9c8dc7d396cd5a14e16 (diff)
Add tools/5 patch
Update #3220.
Diffstat (limited to 'tools')
-rw-r--r--tools/5/gdb/gdb-sim-arange-inline.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/5/gdb/gdb-sim-arange-inline.diff b/tools/5/gdb/gdb-sim-arange-inline.diff
new file mode 100644
index 0000000..73fd1b6
--- /dev/null
+++ b/tools/5/gdb/gdb-sim-arange-inline.diff
@@ -0,0 +1,22 @@
+--- gdb-7.7.orig/sim/common/sim-arange.h 2014-04-10 14:07:37.000000000 +1000
++++ gdb-7.7/sim/common/sim-arange.h 2014-04-10 14:05:43.000000000 +1000
+@@ -62,17 +62,13 @@
+
+ /* Return non-zero if ADDR is in range AR, traversing the entire tree.
+ If no range is specified, that is defined to mean "everything". */
+-extern INLINE int
++static INLINE int
+ sim_addr_range_hit_p (ADDR_RANGE * /*ar*/, address_word /*addr*/);
+ #define ADDR_RANGE_HIT_P(ar, addr) \
+ ((ar)->range_tree == NULL || sim_addr_range_hit_p ((ar), (addr)))
+
+ #ifdef HAVE_INLINE
+-#ifdef SIM_ARANGE_C
+-#define SIM_ARANGE_INLINE INLINE
+-#else
+-#define SIM_ARANGE_INLINE EXTERN_INLINE
+-#endif
++#define SIM_ARANGE_INLINE static INLINE
+ #include "sim-arange.c"
+ #else
+ #define SIM_ARANGE_INLINE