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

* tracepoint.h (struct trace_status): Use unsigned long long
	instead of size_t.
	* tracepoint.c (trace_status_command): Fix printf directive.
	(trace_save_command): Check fwrite returns, fix printf directive.
	(trace_filename): New global.
	(tfile_open): Set it, check read returns.
	(tfile_close): Free trace_filename.
	(tfile_get_traceframe_address): Check read returns.
	(tfile_trace_find): Ditto.
	(tfile_fetch_registers): Ditto.
	(tfile_xfer_partial): Ditto.
	(tfile_get_trace_state_variable_value): Ditto.
This commit is contained in:
Stan Shebs
2010-01-16 23:15:11 +00:00
parent aecf9ed10d
commit 98e0326221
3 changed files with 127 additions and 29 deletions

View File

@ -97,9 +97,9 @@ struct trace_status
int traceframe_count;
size_t buffer_size;
unsigned long long buffer_size;
size_t buffer_free;
unsigned long long buffer_free;
};
struct trace_status *current_trace_status (void);