summaryrefslogtreecommitdiff
path: root/gdb/tracepoint.h
diff options
context:
space:
mode:
authorStan Shebs <shebs@apple.com>2010-04-06 17:47:35 +0000
committerStan Shebs <shebs@apple.com>2010-04-06 17:47:35 +0000
commit04aa25c7a725dca6cddba9a952781fc0f67c0284 (patch)
tree73347527da62bb09a25b8ede7c3d2d3f4e903087 /gdb/tracepoint.h
parent862505f46570b891ffc7218ffe8c803f1a084ef2 (diff)
downloadgdb-04aa25c7a725dca6cddba9a952781fc0f67c0284.tar.gz
2010-04-06 Stan Shebs <stan@codesourcery.com>
* defs.h (char_ptr): Move typedef here from... * ada-lang.c (char_ptr): Remove. * charset.c (char_ptr): Remove. * tracepoint.h (struct uploaded_string): Remove. (struct uploaded_tp): Use vectors for string arrays. * tracepoint.c (trace_save): Use vectors of actions. (parse_tracepoint_definition): Ditto. (get_uploaded_tp): Clear vectors. * breakpoint.c (create_tracepoint_from_upload): Use vectors. (next_cmd): Change to an int. (read_next_cmd): Use vector of command strings.
Diffstat (limited to 'gdb/tracepoint.h')
-rw-r--r--gdb/tracepoint.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h
index dd16dcf7902..13e956fdb5f 100644
--- a/gdb/tracepoint.h
+++ b/gdb/tracepoint.h
@@ -114,11 +114,7 @@ extern char *default_collect;
/* Struct to collect random info about tracepoints on the target. */
-struct uploaded_string
-{
- char *str;
- struct uploaded_string *next;
-};
+DEF_VEC_P (char_ptr);
struct uploaded_tp
{
@@ -129,11 +125,13 @@ struct uploaded_tp
int step;
int pass;
int orig_size;
+
+ /* String that is the encoded form of the tracepoint's condition. */
char *cond;
- int numactions;
- char *actions[100];
- int num_step_actions;
- char *step_actions[100];
+
+ /* Vectors of strings that are the encoded forms of a tracepoint's actions. */
+ VEC(char_ptr) *actions;
+ VEC(char_ptr) *step_actions;
/* The original string defining the location of the tracepoint. */
char *at_string;
@@ -142,7 +140,7 @@ struct uploaded_tp
char *cond_string;
/* List of original strings defining the tracepoint's actions. */
- struct uploaded_string *cmd_strings;
+ VEC(char_ptr) *cmd_strings;
struct uploaded_tp *next;
};