From 047d8328a9596a3f63c259437c089454c4efa188 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 21 Sep 2016 17:40:38 +0200 Subject: gdb-microbaze: split off big patch, so update-patches works --- .../gdb-microblaze/patches/patch-gdb_debugreg_h | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 package/gdb-microblaze/patches/patch-gdb_debugreg_h (limited to 'package/gdb-microblaze/patches/patch-gdb_debugreg_h') diff --git a/package/gdb-microblaze/patches/patch-gdb_debugreg_h b/package/gdb-microblaze/patches/patch-gdb_debugreg_h new file mode 100644 index 000000000..8800f7c67 --- /dev/null +++ b/package/gdb-microblaze/patches/patch-gdb_debugreg_h @@ -0,0 +1,51 @@ +--- gdb-7.8.2.orig/gdb/debugreg.h 1970-01-01 00:00:00.000000000 +0100 ++++ gdb-7.8.2/gdb/debugreg.h 2016-09-20 19:56:32.003878822 +0200 +@@ -0,0 +1,48 @@ ++#ifndef SYS_DEBUGREG_H ++#define SYS_DEBUGREG_H ++ ++#include ++ ++#define DR_FIRSTADDR 0 ++#define DR_LASTADDR 3 ++ ++#define DR_STATUS 6 ++#define DR_CONTROL 7 ++ ++#define DR_TRAP0 (0x1) ++#define DR_TRAP1 (0x2) ++#define DR_TRAP2 (0x4) ++#define DR_TRAP3 (0x8) ++ ++#define DR_STEP (0x4000) ++#define DR_SWITCH (0x8000) ++ ++#define DR_CONTROL_SHIFT 16 ++#define DR_CONTROL_SIZE 4 ++ ++#define DR_RW_EXECUTE (0x0) ++#define DR_RW_WRITE (0x1) ++#define DR_RW_READ (0x3) ++ ++#define DR_LEN_1 (0x0) ++#define DR_LEN_2 (0x4) ++#define DR_LEN_4 (0xC) ++#define DR_LEN_8 (0x8) ++ ++#define DR_LOCAL_ENABLE_SHIFT 0 ++#define DR_GLOBAL_ENABLE_SHIFT 1 ++#define DR_ENABLE_SIZE 2 ++ ++#define DR_LOCAL_ENABLE_MASK (0x55) ++#define DR_GLOBAL_ENABLE_MASK (0xAA) ++ ++ ++#if SIZE_MAX > 4294967295 ++# define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL) ++#else ++# define DR_CONTROL_RESERVED (0x00FC00U) ++#endif ++#define DR_LOCAL_SLOWDOWN (0x100) ++#define DR_GLOBAL_SLOWDOWN (0x200) ++ ++#endif -- cgit v1.2.3