Files
mercury/trace/mercury_trace_cmd_developer.h
Julien Fischer 6f76b20bd4 Add a new developer-only mdb command, trail_details, that prints out
Estimated hours taken: 2
Branches: main

Add a new developer-only mdb command, trail_details, that prints out
low-level information concerning the state of the trail.  This includes
things like the current values of the trail pointer and ticket counter.

trace/mercury_trace_internal.c:
trace/mercury_trace_cmd_developer.c:
	Add the new command.

trace/mercury_trace_cmd_developer.h:
	Add the new command and delete a prototype for a function not defined
	by this module.

runtime/mercury_trail.h:
runtime/mercury_trail.c:
	Add a new function that returns the number of entries on the trail
	(for the currently executing thread).

doc/user_guide.texi:
	Document the new command.

	s/lowlevel/low-level/ in some spots (the latter is consistent with the
	hyphenation used elsewhere in this documentation.)

	Break some over-long lines.

tests/debugger/completion.exp:
tests/debugger/mdb_command_test.inp:
	Update this for the "trail_details" mdb command.
2008-06-10 04:05:01 +00:00

41 lines
1.7 KiB
C

/*
** vim: ts=4 sw=4 expandtab
*/
/*
** Copyright (C) 1998-2006, 2008 The University of Melbourne.
** This file may only be copied under the terms of the GNU Library General
** Public License - see the file COPYING.LIB in the Mercury distribution.
*/
#include "mercury_imp.h"
#include "mercury_trace_cmds.h"
extern MR_TraceCmdFunc MR_trace_cmd_var_details;
extern MR_TraceCmdFunc MR_trace_cmd_term_size;
extern MR_TraceCmdFunc MR_trace_cmd_flag;
extern MR_TraceCmdFunc MR_trace_cmd_subgoal;
extern MR_TraceCmdFunc MR_trace_cmd_consumer;
extern MR_TraceCmdFunc MR_trace_cmd_gen_stack;
extern MR_TraceCmdFunc MR_trace_cmd_cut_stack;
extern MR_TraceCmdFunc MR_trace_cmd_pneg_stack;
extern MR_TraceCmdFunc MR_trace_cmd_mm_stacks;
extern MR_TraceCmdFunc MR_trace_cmd_nondet_stack;
extern MR_TraceCmdFunc MR_trace_cmd_stack_regs;
extern MR_TraceCmdFunc MR_trace_cmd_all_regs;
extern MR_TraceCmdFunc MR_trace_cmd_debug_vars;
extern MR_TraceCmdFunc MR_trace_cmd_stats;
extern MR_TraceCmdFunc MR_trace_cmd_print_optionals;
extern MR_TraceCmdFunc MR_trace_cmd_unhide_events;
extern MR_TraceCmdFunc MR_trace_cmd_table;
extern MR_TraceCmdFunc MR_trace_cmd_type_ctor;
extern MR_TraceCmdFunc MR_trace_cmd_class_decl;
extern MR_TraceCmdFunc MR_trace_cmd_all_type_ctors;
extern MR_TraceCmdFunc MR_trace_cmd_all_class_decls;
extern MR_TraceCmdFunc MR_trace_cmd_all_procedures;
extern MR_TraceCmdFunc MR_trace_cmd_ambiguity;
extern MR_TraceCmdFunc MR_trace_cmd_trail_details;
extern const char *const MR_trace_nondet_stack_cmd_args[];
extern const char *const MR_trace_stats_cmd_args[];