Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
73ad5cbb
Commit
73ad5cbb
authored
Nov 13, 2009
by
Zachary T Welch
Browse files
trace_point_t -> struct trace_point
Remove misleading typedef and redundant suffix from struct trace_point.
parent
15134758
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/target/trace.c
View file @
73ad5cbb
...
...
@@ -82,7 +82,7 @@ COMMAND_HANDLER(handle_trace_point_command)
/* resize array if necessary */
if
(
!
trace
->
trace_points
||
(
trace
->
trace_points_size
==
trace
->
num_trace_points
))
{
trace
->
trace_points
=
realloc
(
trace
->
trace_points
,
sizeof
(
trace_point
_t
)
*
(
trace
->
trace_points_size
+
32
));
trace
->
trace_points
=
realloc
(
trace
->
trace_points
,
sizeof
(
struct
trace_point
)
*
(
trace
->
trace_points_size
+
32
));
trace
->
trace_points_size
+=
32
;
}
...
...
src/target/trace.h
View file @
73ad5cbb
...
...
@@ -25,17 +25,17 @@
struct
target_s
;
struct
command_context_s
;
typedef
struct
trace_point
_s
struct
trace_point
{
uint32_t
address
;
uint64_t
hit_counter
;
}
trace_point_t
;
};
typedef
struct
trace_s
{
uint32_t
num_trace_points
;
uint32_t
trace_points_size
;
trace_point
_t
*
trace_points
;
struct
trace_point
*
trace_points
;
uint32_t
trace_history_size
;
uint32_t
*
trace_history
;
uint32_t
trace_history_pos
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment