From: <zw...@ma...> - 2009-05-11 06:38:44
|
Author: zwelch Date: 2009-05-11 06:38:18 +0200 (Mon, 11 May 2009) New Revision: 1713 Modified: trunk/src/target/breakpoints.h trunk/src/target/target.c trunk/src/target/target.h Log: Audit and eliminate redundant #include directives in core target files. Modified: trunk/src/target/breakpoints.h =================================================================== --- trunk/src/target/breakpoints.h 2009-05-11 04:30:41 UTC (rev 1712) +++ trunk/src/target/breakpoints.h 2009-05-11 04:38:18 UTC (rev 1713) @@ -20,7 +20,7 @@ #ifndef BREAKPOINTS_H #define BREAKPOINTS_H -#include "target.h" +#include "types.h" struct target_s; Modified: trunk/src/target/target.c =================================================================== --- trunk/src/target/target.c 2009-05-11 04:30:41 UTC (rev 1712) +++ trunk/src/target/target.c 2009-05-11 04:38:18 UTC (rev 1713) @@ -33,31 +33,17 @@ #include "config.h" #endif -#include "replacements.h" #include "target.h" #include "target_request.h" - -#include "log.h" -#include "configuration.h" -#include "binarybuffer.h" +#include "time_support.h" +#include "register.h" +#include "trace.h" +#include "image.h" #include "jtag.h" -#include <string.h> -#include <stdlib.h> #include <inttypes.h> -#include <sys/stat.h> -#include <unistd.h> -#include <errno.h> -#include <sys/time.h> -#include <time.h> - -#include <time_support.h> - -#include <fileio.h> -#include <image.h> - static int handle_targets_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); static int handle_reg_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); Modified: trunk/src/target/target.h =================================================================== --- trunk/src/target/target.h 2009-05-11 04:30:41 UTC (rev 1712) +++ trunk/src/target/target.h 2009-05-11 04:38:18 UTC (rev 1713) @@ -26,19 +26,16 @@ #ifndef TARGET_H #define TARGET_H -#include "register.h" #include "breakpoints.h" #include "algorithm.h" -#include "trace.h" - #include "command.h" -#include "types.h" -#include <sys/time.h> -#include <time.h> +#include "replacements.h" struct reg_s; +struct trace_s; struct command_context_s; + /* * TARGET_UNKNOWN = 0: we don't know anything about the target yet * TARGET_RUNNING = 1: the target is executing user code |