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>
This commit is contained in:
David Brownell 2009-11-16 00:34:57 -08:00
parent 5d1a9033ab
commit aa7c449600
12 changed files with 12 additions and 2 deletions

View File

@ -28,6 +28,7 @@
#endif
#include "gdb_server.h"
#include "breakpoints.h"
#include "target_request.h"
#include "register.h"
#include "server.h"

View File

@ -27,6 +27,7 @@
#endif
#include "arm11.h"
#include "breakpoints.h"
#include "arm11_dbgtap.h"
#include "armv4_5.h"
#include "arm_simulator.h"

View File

@ -30,6 +30,7 @@
#include "config.h"
#endif
#include "breakpoints.h"
#include "embeddedice.h"
#include "target_request.h"
#include "arm7_9_common.h"

View File

@ -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 /**< */

View File

@ -28,6 +28,7 @@
#endif
#include "armv4_5.h"
#include "breakpoints.h"
#include "arm_disassembler.h"
#include "binarybuffer.h"

View File

@ -34,6 +34,7 @@
#include "config.h"
#endif
#include "breakpoints.h"
#include "armv7m.h"
#define ARRAY_SIZE(x) ((int)(sizeof(x)/sizeof((x)[0])))

View File

@ -33,6 +33,7 @@
#include "config.h"
#endif
#include "breakpoints.h"
#include "cortex_a8.h"
#include "armv7a.h"
#include "armv4_5.h"

View File

@ -31,6 +31,7 @@
#include "config.h"
#endif
#include "breakpoints.h"
#include "cortex_m3.h"
#include "target_request.h"
#include "target_type.h"

View File

@ -23,6 +23,7 @@
#include "config.h"
#endif
#include "breakpoints.h"
#include "mips32.h"
#include "mips_m4k.h"
#include "mips32_dmaacc.h"

View File

@ -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"

View File

@ -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;
/**

View File

@ -27,6 +27,7 @@
#include "config.h"
#endif
#include "breakpoints.h"
#include "xscale.h"
#include "target_type.h"
#include "arm7_9_common.h"