2010-04-01 Stan Shebs <stan@codesourcery.com>

Nathan Sidwell  <nathan@codesourcery.com>

	* tracepoint.h (enum actionline_type): Remove.
	(validate_actionline): Change return to void.
	* tracepoint.c (report_agent_reqs_errors): New function.
	(validate_actionline): Call it, change return to void, report errors
	more consistently.
	(collect_symbol): Call report_agent_reqs_errors.
	(encode_actions_1): Ditto.
	(encode_actions): Don't expect a result from validate_actionline.

	* gdb.trace/actions.exp: Tweak expected output.
	* gdb.trace/while-stepping.exp: Tweak expected output.
This commit is contained in:
Stan Shebs
2010-04-01 22:57:25 +00:00
parent 615bcdefbf
commit fff87407d4
6 changed files with 86 additions and 83 deletions

View File

@@ -23,14 +23,6 @@
#include "breakpoint.h"
#include "target.h"
enum actionline_type
{
BADLINE = -1,
GENERIC = 0,
END = 1,
STEPPING = 2
};
/* A trace state variable is a value managed by a target being
traced. A trace state variable (or tsv for short) can be accessed
and assigned to by tracepoint actions and conditionals, but is not
@@ -176,7 +168,7 @@ void set_traceframe_number (int);
struct cleanup *make_cleanup_restore_current_traceframe (void);
void free_actions (struct breakpoint *);
enum actionline_type validate_actionline (char **, struct breakpoint *);
extern void validate_actionline (char **, struct breakpoint *);
extern void end_actions_pseudocommand (char *args, int from_tty);
extern void while_stepping_pseudocommand (char *args, int from_tty);