blob: 20b2e7673414a43d3a45fba56be004181d2bbbfc [file] [log] [blame]
sewardj3b290482011-05-06 21:02:55 +00001general valgrind monitor commands:
2 help [debug] : monitor command help. With debug: + debugging commands
sewardj30b3eca2011-06-28 08:20:39 +00003 v.wait [<ms>] : sleep <ms> (default 0) then continue
4 v.info all_errors : show all errors found so far
5 v.info last_error : show last error found
6 v.info n_errs_found : show the nr of errors found so far
7 v.kill : kill the Valgrind process
8 v.set gdb_output : set valgrind output to gdb
9 v.set log_output : set valgrind output to log
10 v.set mixed_output : set valgrind output to log, interactive output to gdb
11 v.set vgdb-error <errornr> : debug me at error >= <errornr>
sewardj3b290482011-05-06 21:02:55 +000012
13memcheck monitor commands:
sewardj30b3eca2011-06-28 08:20:39 +000014 get_vbits <addr> [<len>]
sewardj3b290482011-05-06 21:02:55 +000015 returns validity bits for <len> (or 1) bytes at <addr>
16 bit values 0 = valid, 1 = invalid, __ = unaddressable byte
sewardj30b3eca2011-06-28 08:20:39 +000017 Example: get_vbits 0x........ 10
18 make_memory [noaccess|undefined
19 |defined|Definedifaddressable] <addr> [<len>]
sewardj3b290482011-05-06 21:02:55 +000020 mark <len> (or 1) bytes at <addr> with the given accessibility
sewardj30b3eca2011-06-28 08:20:39 +000021 check_memory [addressable|defined] <addr> [<len>]
sewardj3b290482011-05-06 21:02:55 +000022 check that <len> (or 1) bytes at <addr> have the given accessibility
23 and outputs a description of <addr>
sewardj30b3eca2011-06-28 08:20:39 +000024 leak_check [full*|summary] [reachable|possibleleak*|definiteleak]
sewardjc8bd1df2011-06-26 12:41:33 +000025 [increased*|changed|any]
philippe84234902012-01-14 13:53:13 +000026 [unlimited*|limited <max_loss_records_output>]
sewardj3b290482011-05-06 21:02:55 +000027 * = defaults
sewardj30b3eca2011-06-28 08:20:39 +000028 Examples: leak_check
29 leak_check summary any
philippe84234902012-01-14 13:53:13 +000030 leak_check full reachable any limited 100
philippea22f59d2012-01-26 23:13:52 +000031 block_list <loss_record_nr>
32 after a leak search, shows the list of blocks of <loss_record_nr>
33 who_points_at <addr> [<len>]
34 shows places pointing inside <len> (default 1) bytes at <addr>
35 (with len 1, only shows "start pointers" pointing exactly to <addr>,
36 with len > 1, will also show "interior pointers")
sewardj3b290482011-05-06 21:02:55 +000037
38general valgrind monitor commands:
39 help [debug] : monitor command help. With debug: + debugging commands
sewardj30b3eca2011-06-28 08:20:39 +000040 v.wait [<ms>] : sleep <ms> (default 0) then continue
41 v.info all_errors : show all errors found so far
42 v.info last_error : show last error found
43 v.info n_errs_found : show the nr of errors found so far
44 v.kill : kill the Valgrind process
45 v.set gdb_output : set valgrind output to gdb
46 v.set log_output : set valgrind output to log
47 v.set mixed_output : set valgrind output to log, interactive output to gdb
48 v.set vgdb-error <errornr> : debug me at error >= <errornr>
sewardj3b290482011-05-06 21:02:55 +000049debugging valgrind internals monitor commands:
sewardj30b3eca2011-06-28 08:20:39 +000050 v.info gdbserver_status : show gdbserver status
51 v.info memory : show valgrind heap memory stats
sewardjd6e13d82011-10-22 20:23:30 +000052 v.info scheduler : show valgrind thread state and stacktrace
sewardj30b3eca2011-06-28 08:20:39 +000053 v.set debuglog <level> : set valgrind debug log level to <level>
54 v.translate <addr> [<traceflags>] : debug translation of <addr> with <traceflags>
sewardj3b290482011-05-06 21:02:55 +000055 (default traceflags 0b00100000 : show after instrumentation)
56 An additional flag 0b100000000 allows to show gdbserver instrumentation
57
58memcheck monitor commands:
sewardj30b3eca2011-06-28 08:20:39 +000059 get_vbits <addr> [<len>]
sewardj3b290482011-05-06 21:02:55 +000060 returns validity bits for <len> (or 1) bytes at <addr>
61 bit values 0 = valid, 1 = invalid, __ = unaddressable byte
sewardj30b3eca2011-06-28 08:20:39 +000062 Example: get_vbits 0x........ 10
63 make_memory [noaccess|undefined
64 |defined|Definedifaddressable] <addr> [<len>]
sewardj3b290482011-05-06 21:02:55 +000065 mark <len> (or 1) bytes at <addr> with the given accessibility
sewardj30b3eca2011-06-28 08:20:39 +000066 check_memory [addressable|defined] <addr> [<len>]
sewardj3b290482011-05-06 21:02:55 +000067 check that <len> (or 1) bytes at <addr> have the given accessibility
68 and outputs a description of <addr>
sewardj30b3eca2011-06-28 08:20:39 +000069 leak_check [full*|summary] [reachable|possibleleak*|definiteleak]
sewardjc8bd1df2011-06-26 12:41:33 +000070 [increased*|changed|any]
philippe84234902012-01-14 13:53:13 +000071 [unlimited*|limited <max_loss_records_output>]
sewardj3b290482011-05-06 21:02:55 +000072 * = defaults
sewardj30b3eca2011-06-28 08:20:39 +000073 Examples: leak_check
74 leak_check summary any
philippe84234902012-01-14 13:53:13 +000075 leak_check full reachable any limited 100
philippea22f59d2012-01-26 23:13:52 +000076 block_list <loss_record_nr>
77 after a leak search, shows the list of blocks of <loss_record_nr>
78 who_points_at <addr> [<len>]
79 shows places pointing inside <len> (default 1) bytes at <addr>
80 (with len 1, only shows "start pointers" pointing exactly to <addr>,
81 with len > 1, will also show "interior pointers")
sewardj3b290482011-05-06 21:02:55 +000082
83monitor command request to kill this process