summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-16 00:34:57 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-16 00:34:57 -0800
commitaa7c449600d6f6d634f587de6091421a1a877af5 (patch)
tree4db1820d0ba330d23e07177057b888c027e5dac7 /src/target
parent5d1a9033ab89b017c95e79590d76abbfa61f7512 (diff)
downloadopenocd_libswd-aa7c449600d6f6d634f587de6091421a1a877af5.tar.gz
openocd_libswd-aa7c449600d6f6d634f587de6091421a1a877af5.tar.bz2
openocd_libswd-aa7c449600d6f6d634f587de6091421a1a877af5.tar.xz
openocd_libswd-aa7c449600d6f6d634f587de6091421a1a877af5.zip
target: don't implicitly include "breakpoint.h"
Most files in the tree seem to have ended up including this, and *quite* needlessly ... only code implementing or using breakpoints actually needs these declarations. So take it out of the header files which included it, and put it in files which use it ... reduce needless interdependencies. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm11.c1
-rw-r--r--src/target/arm7_9_common.c1
-rw-r--r--src/target/arm7_9_common.h1
-rw-r--r--src/target/armv4_5.c1
-rw-r--r--src/target/armv7m.c1
-rw-r--r--src/target/cortex_a8.c1
-rw-r--r--src/target/cortex_m3.c1
-rw-r--r--src/target/mips_m4k.c1
-rw-r--r--src/target/target.c1
-rw-r--r--src/target/target.h3
-rw-r--r--src/target/xscale.c1
11 files changed, 11 insertions, 2 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c
index 348dd875..f4e2c0d5 100644
--- a/src/target/arm11.c
+++ b/src/target/arm11.c
@@ -27,6 +27,7 @@
#endif
#include "arm11.h"
+#include "breakpoints.h"
#include "arm11_dbgtap.h"
#include "armv4_5.h"
#include "arm_simulator.h"
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index c35c8252..b07111eb 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -30,6 +30,7 @@
#include "config.h"
#endif
+#include "breakpoints.h"
#include "embeddedice.h"
#include "target_request.h"
#include "arm7_9_common.h"
diff --git a/src/target/arm7_9_common.h b/src/target/arm7_9_common.h
index d70bae26..e5a2bb71 100644
--- a/src/target/arm7_9_common.h
+++ b/src/target/arm7_9_common.h
@@ -29,7 +29,6 @@
#ifndef ARM7_9_COMMON_H
#define ARM7_9_COMMON_H
-#include "breakpoints.h"
#include "armv4_5.h"
#define ARM7_9_COMMON_MAGIC 0x0a790a79 /**< */
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index f9b22b94..47b32add 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -28,6 +28,7 @@
#endif
#include "armv4_5.h"
+#include "breakpoints.h"
#include "arm_disassembler.h"
#include "binarybuffer.h"
diff --git a/src/target/armv7m.c b/src/target/armv7m.c
index ff97a4cb..6c6a9ec6 100644
--- a/src/target/armv7m.c
+++ b/src/target/armv7m.c
@@ -34,6 +34,7 @@
#include "config.h"
#endif
+#include "breakpoints.h"
#include "armv7m.h"
#define ARRAY_SIZE(x) ((int)(sizeof(x)/sizeof((x)[0])))
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c
index 0d00b3aa..832efe92 100644
--- a/src/target/cortex_a8.c
+++ b/src/target/cortex_a8.c
@@ -33,6 +33,7 @@
#include "config.h"
#endif
+#include "breakpoints.h"
#include "cortex_a8.h"
#include "armv7a.h"
#include "armv4_5.h"
diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c
index e236df2d..35ca5a5c 100644
--- a/src/target/cortex_m3.c
+++ b/src/target/cortex_m3.c
@@ -31,6 +31,7 @@
#include "config.h"
#endif
+#include "breakpoints.h"
#include "cortex_m3.h"
#include "target_request.h"
#include "target_type.h"
diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c
index 6dd00ad5..fff401c1 100644
--- a/src/target/mips_m4k.c
+++ b/src/target/mips_m4k.c
@@ -23,6 +23,7 @@
#include "config.h"
#endif
+#include "breakpoints.h"
#include "mips32.h"
#include "mips_m4k.h"
#include "mips32_dmaacc.h"
diff --git a/src/target/target.c b/src/target/target.c
index f7e2ad64..f5a092a7 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -36,6 +36,7 @@
#include "target.h"
#include "target_type.h"
#include "target_request.h"
+#include "breakpoints.h"
#include "time_support.h"
#include "register.h"
#include "trace.h"
diff --git a/src/target/target.h b/src/target/target.h
index e4de2c7c..06105ee6 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -28,13 +28,14 @@
#include <stddef.h>
-#include "breakpoints.h"
#include "algorithm.h"
#include "command.h"
struct reg;
struct trace;
struct command_context;
+struct breakpoint;
+struct watchpoint;
/**
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 0b5b26b3..d8977e21 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -27,6 +27,7 @@
#include "config.h"
#endif
+#include "breakpoints.h"
#include "xscale.h"
#include "target_type.h"
#include "arm7_9_common.h"