sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 1 | general valgrind monitor commands: |
| 2 | help [debug] : monitor command help. With debug: + debugging commands |
| 3 | vg.wait [<ms>] : sleep <ms> (default 0) then continue |
| 4 | vg.info all_errors : show all errors found so far |
| 5 | vg.info last_error : show last error found |
| 6 | vg.info n_errs_found : show the nr of errors found so far |
| 7 | vg.kill : kill the Valgrind process |
| 8 | vg.set gdb_output : set valgrind output to gdb |
| 9 | vg.set log_output : set valgrind output to log |
| 10 | vg.set mixed_output : set valgrind output to log, interactive output to gdb |
| 11 | vg.set vgdb-error <errornr> : debug me at error >= <errornr> |
| 12 | |
| 13 | memcheck monitor commands: |
| 14 | mc.get_vbits <addr> [<len>] |
| 15 | returns validity bits for <len> (or 1) bytes at <addr> |
| 16 | bit values 0 = valid, 1 = invalid, __ = unaddressable byte |
| 17 | Example: mc.get_vbits 0x........ 10 |
| 18 | mc.make_memory [noaccess|undefined |
| 19 | |defined|ifaddressabledefined] <addr> [<len>] |
| 20 | mark <len> (or 1) bytes at <addr> with the given accessibility |
| 21 | mc.check_memory [addressable|defined] <addr> [<len>] |
| 22 | check that <len> (or 1) bytes at <addr> have the given accessibility |
| 23 | and outputs a description of <addr> |
| 24 | mc.leak_check [full*|summary] |
| 25 | [reachable|leakpossible*|definiteleak] |
| 26 | * = defaults |
| 27 | Examples: mc.leak_check |
| 28 | mc.leak_check any summary |
| 29 | |
| 30 | general valgrind monitor commands: |
| 31 | help [debug] : monitor command help. With debug: + debugging commands |
| 32 | vg.wait [<ms>] : sleep <ms> (default 0) then continue |
| 33 | vg.info all_errors : show all errors found so far |
| 34 | vg.info last_error : show last error found |
| 35 | vg.info n_errs_found : show the nr of errors found so far |
| 36 | vg.kill : kill the Valgrind process |
| 37 | vg.set gdb_output : set valgrind output to gdb |
| 38 | vg.set log_output : set valgrind output to log |
| 39 | vg.set mixed_output : set valgrind output to log, interactive output to gdb |
| 40 | vg.set vgdb-error <errornr> : debug me at error >= <errornr> |
| 41 | debugging valgrind internals monitor commands: |
| 42 | vg.info gdbserver_status : show gdbserver status |
| 43 | vg.info memory : show valgrind heap memory stats |
| 44 | vg.set debuglog <level> : set valgrind debug log level to <level> |
| 45 | vg.translate <addr> [<traceflags>] : debug translation of <addr> with <traceflags> |
| 46 | (default traceflags 0b00100000 : show after instrumentation) |
| 47 | An additional flag 0b100000000 allows to show gdbserver instrumentation |
| 48 | |
| 49 | memcheck monitor commands: |
| 50 | mc.get_vbits <addr> [<len>] |
| 51 | returns validity bits for <len> (or 1) bytes at <addr> |
| 52 | bit values 0 = valid, 1 = invalid, __ = unaddressable byte |
| 53 | Example: mc.get_vbits 0x........ 10 |
| 54 | mc.make_memory [noaccess|undefined |
| 55 | |defined|ifaddressabledefined] <addr> [<len>] |
| 56 | mark <len> (or 1) bytes at <addr> with the given accessibility |
| 57 | mc.check_memory [addressable|defined] <addr> [<len>] |
| 58 | check that <len> (or 1) bytes at <addr> have the given accessibility |
| 59 | and outputs a description of <addr> |
| 60 | mc.leak_check [full*|summary] |
| 61 | [reachable|leakpossible*|definiteleak] |
| 62 | * = defaults |
| 63 | Examples: mc.leak_check |
| 64 | mc.leak_check any summary |
| 65 | |
| 66 | monitor command request to kill this process |