target: less implicit inclusion of "command.h"

Lots of files still include it, often through needless
duplicate inclusion of "log.h"; sigh.

This cleans up the inclusion graph a bunch, so there are
fewer inclusion paths, but it doesn't change much otherwise.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
This commit is contained in:
David Brownell 2009-11-16 00:35:11 -08:00
parent db094c2e60
commit 1186f7efa7
10 changed files with 3 additions and 14 deletions

View File

@ -21,18 +21,15 @@
#include "config.h"
#endif
#include "log.h"
#include "types.h"
#include "jtag.h"
#include "configuration.h"
#include "xsvf.h"
#include "svf.h"
#include "target.h"
#include "flash.h"
#include "nand.h"
#include "pld.h"
#include "command.h"
#include "server.h"
#include "telnet_server.h"
#include "gdb_server.h"

View File

@ -60,7 +60,6 @@
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include "log.h"
#include "types.h"
#include "flash.h"
#include "target.h"

View File

@ -27,7 +27,6 @@
#include "config.h"
#endif
#include "log.h"
#include "time_support.h"
// @todo the inclusion of server.h here is a layering violation
#include "server.h"

View File

@ -25,7 +25,6 @@
#endif
#include "configuration.h"
#include "log.h"
// @todo the inclusion of server.h here is a layering violation
#include "server.h"

View File

@ -33,7 +33,6 @@
#include "xsvf.h"
#include "svf.h"
#include "target.h"
#include "flash.h"
#include "nand.h"
#include "pld.h"
#include "mflash.h"

View File

@ -27,7 +27,6 @@
#include "armv4_5.h"
#include "arm_disassembler.h"
#include "arm_simulator.h"
#include "log.h"
#include "binarybuffer.h"

View File

@ -28,7 +28,6 @@
#include "register.h"
#include "target.h"
#include "log.h"
#include "etm.h"
typedef enum armv4_5_mode

View File

@ -27,7 +27,6 @@
#include "target.h"
#include "register.h"
#include "log.h"
#include "binarybuffer.h"
#include "command.h"

View File

@ -21,7 +21,6 @@
#include "register.h"
#include "target.h"
#include "log.h"
#include "arm_adi_v5.h"
#include "armv4_5.h"
#include "armv4_5_mmu.h"

View File

@ -27,8 +27,8 @@
#define TARGET_H
#include <stddef.h>
#include "command.h"
#include "types.h"
#include "jim.h"
struct reg;
struct trace;
@ -230,7 +230,7 @@ enum target_event
struct target_event_action {
enum target_event event;
Jim_Obj *body;
struct Jim_Obj *body;
int has_percent;
struct target_event_action *next;
};