summaryrefslogtreecommitdiff
path: root/src/target/breakpoints.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 08:42:06 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:11 -0800
commit72b421418f315cb54a01ba4d249082f989d5154a (patch)
treee292d768a61b3ccbc7fe5448dae938ab7e8e4170 /src/target/breakpoints.h
parente7f65c5a116802c4e510fe212b26e9a020de0b3e (diff)
downloadopenocd+libswd-72b421418f315cb54a01ba4d249082f989d5154a.tar.gz
openocd+libswd-72b421418f315cb54a01ba4d249082f989d5154a.tar.bz2
openocd+libswd-72b421418f315cb54a01ba4d249082f989d5154a.tar.xz
openocd+libswd-72b421418f315cb54a01ba4d249082f989d5154a.zip
watchpoint_t -> struct watchpoint
Remove misleading typedef and redundant suffix from struct watchpoint.
Diffstat (limited to 'src/target/breakpoints.h')
-rw-r--r--src/target/breakpoints.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/breakpoints.h b/src/target/breakpoints.h
index 781c91b6..57c06c73 100644
--- a/src/target/breakpoints.h
+++ b/src/target/breakpoints.h
@@ -46,7 +46,7 @@ typedef struct breakpoint_s
int unique_id;
} breakpoint_t;
-typedef struct watchpoint_s
+struct watchpoint
{
uint32_t address;
uint32_t length;
@@ -54,9 +54,9 @@ typedef struct watchpoint_s
uint32_t value;
enum watchpoint_rw rw;
int set;
- struct watchpoint_s *next;
+ struct watchpoint *next;
int unique_id;
-} watchpoint_t;
+};
void breakpoint_clear_target(struct target_s *target);
int breakpoint_add(struct target_s *target,