aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.h
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2010-04-06 17:47:40 +0000
committerStan Shebs <shebs@codesourcery.com>2010-04-06 17:47:40 +0000
commit3149d8c1150e24222c6c41e2c0fdde42f202d750 (patch)
treec5b828d10249cebf688eb64c3b23a4e72207d23a /gdb/tracepoint.h
parent4cc23edeb96576c3bea1a99c32cb9c83c471ac17 (diff)
downloadgdb-3149d8c1150e24222c6c41e2c0fdde42f202d750.zip
gdb-3149d8c1150e24222c6c41e2c0fdde42f202d750.tar.gz
gdb-3149d8c1150e24222c6c41e2c0fdde42f202d750.tar.bz2
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 dd16dcf..13e956f 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;
};