Files
mercury/tests/debugger/completion.exp
Zoltan Somogyi fc5e29bd00 Make all mdb commands exist regardless of compilation options:
Estimated hours taken: 1
Branches: main

trace/mercury_trace_internal.c:
	Make all mdb commands exist regardless of compilation options:
	make the commands that are meaningful only with some compilation
	options report an error if those options aren't specified. This
	should simplify mdb for users, and should simplify testing (e.g.
	tests/debugger/completion).

doc/user_guide.texi:
	Document the previously conditionally defined commands that weren't
	documented before.

tests/debugger/mdb_command_test.inp:
	Test the documentation of the previously undocumented commands.

tests/debugger/completion.exp:
	Update the expected output of command completion to include the now
	unconditionally defined mdb commands.
2003-03-11 02:44:26 +00:00

82 lines
3.3 KiB
Plaintext

1: 1 1 CALL pred completion.main/2-0 (det) completion.m:13
mdb> echo on
Command echo enabled.
mdb> register --quiet
mdb>
? document_category label_stats retry
P down level return
alias e maxdepth s
all_regs echo mindepth save
b enable mmc_options scope
break exception modules scroll
browse excp next set
c f nondet_stack source
cc_query finish p stack
clear_histogram forward print stack_regs
context g print_optionals step
continue gen_stack printlevel table
current goto proc_body table_io
d h proc_stats unalias
dd help procedures unhide_events
dd_dd histogram_all query up
delete histogram_exp quit v
disable ignore r vars
document io_query register view
h help histogram_all histogram_exp
vars view
help vars
vars
Prints the names of all the known variables in the current
environment, together with an ordinal number for each variable.
mdb>
* --pretty -f -v exception
--flat --verbose -p DCG_0 goal
p --flat DCG_0
DCG_0 (arg 1) state('<<c_pointer>>')
mdb>
stack stack_regs
stack --detailed
0 1 1 1 pred completion.main/2-0 (det) (completion.m:13) (empty)
mdb>
proc_body proc_stats procedures
completion completion.sub2
completion.sub1 completion.sub2.sub3
completion.sub1 completion.sub2 completion.sub2.sub3
procedures completion.sub1
List of procedures in module `completion.sub1'
pred completion.sub1.zp/1-0 (det)
func completion.sub1.z1/0-0 (det)
mdb> set --flat format pretty
mdb> unalias excp
Alias `excp' removed.
mdb> b zabc3
0: + stop interface func completion.sub2.sub3.zabc3/0-0 (det)
mdb>
func*completion. func*completion.sub2.
func*completion.sub1. func*completion.sub2.sub3.
func*completion.z func*completion.zz
b func*completion.z
1: + stop interface func completion.z/0-0 (det)
mdb>
completion. completion.sub2.
completion.sub1. completion.sub2.sub3.
completion.sub1. completion.sub2. completion.sub2.sub3.
completion.sub1.z1 completion.sub1.zp
b completion.sub1.z1
2: + stop interface func completion.sub1.z1/0-0 (det)
mdb>
completion. completion.sub2.
completion.sub1. completion.sub2.sub3.
completion.sub1. completion.sub2. completion.sub2.sub3.
completion.sub2. completion.sub2.sub3.
b completion.sub2.sub3.zabc3
3: + stop interface func completion.sub2.sub3.zabc3/0-0 (det)
mdb>
2d 2delete 2document_category
2dd 2disable 2down
2dd_dd 2document
2delete
2: E stop interface func completion.sub1.z1/0-0 (det)
mdb> c
ok