Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: gdb/tracepoint.h

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/top.c ('k') | gdb/tracepoint.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Data structures associated with tracepoints in GDB. 1 /* Data structures associated with tracepoints in GDB.
2 Copyright (C) 1997-2000, 2007-2012 Free Software Foundation, Inc. 2 Copyright (C) 1997-2000, 2007-2012 Free Software Foundation, Inc.
3 3
4 This file is part of GDB. 4 This file is part of GDB.
5 5
6 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or 8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version. 9 (at your option) any later version.
10 10
11 This program is distributed in the hope that it will be useful, 11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details. 14 GNU General Public License for more details.
15 15
16 You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 18
19 #if !defined (TRACEPOINT_H) 19 #if !defined (TRACEPOINT_H)
20 #define TRACEPOINT_H 1 20 #define TRACEPOINT_H 1
21 21
22 #include "breakpoint.h" 22 #include "breakpoint.h"
23 #include "target.h" 23 #include "target.h"
24 #include "memrange.h" 24 #include "memrange.h"
25 #include "gdb_vecs.h"
25 26
26 /* A trace state variable is a value managed by a target being 27 /* A trace state variable is a value managed by a target being
27 traced. A trace state variable (or tsv for short) can be accessed 28 traced. A trace state variable (or tsv for short) can be accessed
28 and assigned to by tracepoint actions and conditionals, but is not 29 and assigned to by tracepoint actions and conditionals, but is not
29 part of the program being traced, and it doesn't have to be 30 part of the program being traced, and it doesn't have to be
30 collected. Effectively the variables are scratch space for 31 collected. Effectively the variables are scratch space for
31 tracepoints. */ 32 tracepoints. */
32 33
33 struct trace_state_variable 34 struct trace_state_variable
34 { 35 {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 LONGEST start_time; 137 LONGEST start_time;
137 LONGEST stop_time; 138 LONGEST stop_time;
138 }; 139 };
139 140
140 struct trace_status *current_trace_status (void); 141 struct trace_status *current_trace_status (void);
141 142
142 extern char *default_collect; 143 extern char *default_collect;
143 144
144 /* Struct to collect random info about tracepoints on the target. */ 145 /* Struct to collect random info about tracepoints on the target. */
145 146
146 DEF_VEC_P (char_ptr);
147
148 struct uploaded_tp 147 struct uploaded_tp
149 { 148 {
150 int number; 149 int number;
151 enum bptype type; 150 enum bptype type;
152 ULONGEST addr; 151 ULONGEST addr;
153 int enabled; 152 int enabled;
154 int step; 153 int step;
155 int pass; 154 int pass;
156 int orig_size; 155 int orig_size;
157 156
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 char *str_id; 202 char *str_id;
204 203
205 /* Extra target reported info associated with the marker. */ 204 /* Extra target reported info associated with the marker. */
206 char *extra; 205 char *extra;
207 }; 206 };
208 207
209 extern void parse_static_tracepoint_marker_definition 208 extern void parse_static_tracepoint_marker_definition
210 (char *line, char **pp, 209 (char *line, char **pp,
211 struct static_tracepoint_marker *marker); 210 struct static_tracepoint_marker *marker);
212 extern void release_static_tracepoint_marker (struct static_tracepoint_marker *) ; 211 extern void release_static_tracepoint_marker (struct static_tracepoint_marker *) ;
212 extern void free_current_marker (void *arg);
213 213
214 /* A hook used to notify the UI of tracepoint operations. */ 214 /* A hook used to notify the UI of tracepoint operations. */
215 215
216 extern void (*deprecated_trace_find_hook) (char *arg, int from_tty); 216 extern void (*deprecated_trace_find_hook) (char *arg, int from_tty);
217 extern void (*deprecated_trace_start_stop_hook) (int start, int from_tty); 217 extern void (*deprecated_trace_start_stop_hook) (int start, int from_tty);
218 218
219 /* Returns the current traceframe number. */ 219 /* Returns the current traceframe number. */
220 extern int get_traceframe_number (void); 220 extern int get_traceframe_number (void);
221 221
222 /* Make the traceframe NUM be the current GDB trace frame number, and 222 /* Make the traceframe NUM be the current GDB trace frame number, and
223 do nothing more. In particular, this does not flush the 223 do nothing more. In particular, this does not flush the
224 register/frame caches or notify the target about the trace frame 224 register/frame caches or notify the target about the trace frame
225 change, so that is can be used when we need to momentarily access 225 change, so that is can be used when we need to momentarily access
226 live memory. Targets lazily switch their current traceframe to 226 live memory. Targets lazily switch their current traceframe to
227 match GDB's traceframe number, at the appropriate times. */ 227 match GDB's traceframe number, at the appropriate times. */
228 extern void set_traceframe_number (int); 228 extern void set_traceframe_number (int);
229 229
230 /* Make the traceframe NUM be the current trace frame, all the way to 230 /* Make the traceframe NUM be the current trace frame, all the way to
231 the target, and flushes all global state (register/frame caches, 231 the target, and flushes all global state (register/frame caches,
232 etc.). */ 232 etc.). */
233 extern void set_current_traceframe (int num); 233 extern void set_current_traceframe (int num);
234 234
235 struct cleanup *make_cleanup_restore_current_traceframe (void); 235 struct cleanup *make_cleanup_restore_current_traceframe (void);
236 struct cleanup *make_cleanup_restore_traceframe_number (void); 236 struct cleanup *make_cleanup_restore_traceframe_number (void);
237 237
238 void free_actions (struct breakpoint *); 238 void free_actions (struct breakpoint *);
239 239
240 extern char *decode_agent_options (char *exp); 240 extern char *decode_agent_options (char *exp);
241 241
242 extern void encode_actions (struct breakpoint *t, struct bp_location *tloc,
243 char ***tdp_actions, char ***stepping_actions);
244
242 extern void validate_actionline (char **, struct breakpoint *); 245 extern void validate_actionline (char **, struct breakpoint *);
243 246
244 extern void end_actions_pseudocommand (char *args, int from_tty); 247 extern void end_actions_pseudocommand (char *args, int from_tty);
245 extern void while_stepping_pseudocommand (char *args, int from_tty); 248 extern void while_stepping_pseudocommand (char *args, int from_tty);
246 249
247 extern struct trace_state_variable *find_trace_state_variable (const char *name) ; 250 extern struct trace_state_variable *find_trace_state_variable (const char *name) ;
248 extern struct trace_state_variable *create_trace_state_variable (const char *nam e); 251 extern struct trace_state_variable *create_trace_state_variable (const char *nam e);
249 252
250 extern int encode_source_string (int num, ULONGEST addr, 253 extern int encode_source_string (int num, ULONGEST addr,
251 char *srctype, char *src, 254 char *srctype, char *src,
(...skipping 29 matching lines...) Expand all
281 int from_tty); 284 int from_tty);
282 285
283 extern void trace_save (const char *filename, int target_does_save); 286 extern void trace_save (const char *filename, int target_does_save);
284 287
285 extern struct traceframe_info *parse_traceframe_info (const char *tframe_info); 288 extern struct traceframe_info *parse_traceframe_info (const char *tframe_info);
286 289
287 extern int traceframe_available_memory (VEC(mem_range_s) **result, 290 extern int traceframe_available_memory (VEC(mem_range_s) **result,
288 CORE_ADDR memaddr, ULONGEST len); 291 CORE_ADDR memaddr, ULONGEST len);
289 292
290 #endif /* TRACEPOINT_H */ 293 #endif /* TRACEPOINT_H */
OLDNEW
« no previous file with comments | « gdb/top.c ('k') | gdb/tracepoint.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698