1 /* Data structures associated with tracepoints in GDB. 2 Copyright (C) 1997, 1998, 1999, 2000, 2007, 2008, 2009 3 Free Software Foundation, Inc. 4 5 This file is part of GDB. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 3 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19 20 #if !defined (TRACEPOINT_H) 21 #define TRACEPOINT_H 1 22 23 /* The data structure for an action: */ 24 struct action_line 25 { 26 struct action_line *next; 27 char *action; 28 }; 29 30 enum actionline_type 31 { 32 BADLINE = -1, 33 GENERIC = 0, 34 END = 1, 35 STEPPING = 2 36 }; 37 38 extern unsigned long trace_running_p; 39 40 /* A hook used to notify the UI of tracepoint operations. */ 41 42 void (*deprecated_trace_find_hook) (char *arg, int from_tty); 43 void (*deprecated_trace_start_stop_hook) (int start, int from_tty); 44 45 int get_traceframe_number (void); 46 void free_actions (struct breakpoint *); 47 enum actionline_type validate_actionline (char **, struct breakpoint *); 48 49 extern void end_actions_pseudocommand (char *args, int from_tty); 50 extern void while_stepping_pseudocommand (char *args, int from_tty); 51 52 #endif /* TRACEPOINT_H */ 53