Home | History | Annotate | Download | only in gdbserver_tests
      1 general valgrind monitor commands:
      2   help [debug]            : monitor command help. With debug: + debugging commands
      3   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 location <addr>  : show information about location <addr>
      7   v.info n_errs_found [msg] : show the nr of errors found so far and the given msg
      8   v.info open_fds         : show open file descriptors (only if --track-fds=yes)
      9   v.kill                  : kill the Valgrind process
     10   v.set gdb_output        : set valgrind output to gdb
     11   v.set log_output        : set valgrind output to log
     12   v.set mixed_output      : set valgrind output to log, interactive output to gdb
     13   v.set merge-recursive-frames <num> : merge recursive calls in max <num> frames
     14   v.set vgdb-error <errornr> : debug me at error >= <errornr>
     15 memcheck monitor commands:
     16   xb <addr> [<len>]
     17         prints validity bits for <len> (or 1) bytes at <addr>
     18             bit values 0 = valid, 1 = invalid, __ = unaddressable byte
     19         Then prints the bytes values below the corresponding validity bits
     20         in a layout similar to the gdb command 'x /<len>xb <addr>'
     21         Example: xb 0x........ 10
     22   get_vbits <addr> [<len>]
     23         Similar to xb, but only prints the validity bytes by group of 4.
     24   make_memory [noaccess|undefined
     25                      |defined|Definedifaddressable] <addr> [<len>]
     26         mark <len> (or 1) bytes at <addr> with the given accessibility
     27   check_memory [addressable|defined] <addr> [<len>]
     28         check that <len> (or 1) bytes at <addr> have the given accessibility
     29             and outputs a description of <addr>
     30   leak_check [full*|summary]
     31                 [kinds kind1,kind2,...|reachable|possibleleak*|definiteleak]
     32                 [heuristics heur1,heur2,...]
     33                 [increased*|changed|any]
     34                 [unlimited*|limited <max_loss_records_output>]
     35             * = defaults
     36        where kind is one of:
     37          definite indirect possible reachable all none
     38        where heur is one of:
     39          stdstring length64 newarray multipleinheritance all none*
     40        Examples: leak_check
     41                  leak_check summary any
     42                  leak_check full kinds indirect,possible
     43                  leak_check full reachable any limited 100
     44   block_list <loss_record_nr>|<loss_record_nr_from>..<loss_record_nr_to>
     45                 [unlimited*|limited <max_blocks>]
     46                 [heuristics heur1,heur2,...]
     47         after a leak search, shows the list of blocks of <loss_record_nr>
     48         (or of the range <loss_record_nr_from>..<loss_record_nr_to>).
     49         With heuristics, only shows the blocks found via heur1,heur2,...
     50             * = defaults
     51   who_points_at <addr> [<len>]
     52         shows places pointing inside <len> (default 1) bytes at <addr>
     53         (with len 1, only shows "start pointers" pointing exactly to <addr>,
     54          with len > 1, will also show "interior pointers")
     55 general valgrind monitor commands:
     56   help [debug]            : monitor command help. With debug: + debugging commands
     57   v.wait [<ms>]           : sleep <ms> (default 0) then continue
     58   v.info all_errors       : show all errors found so far
     59   v.info last_error       : show last error found
     60   v.info location <addr>  : show information about location <addr>
     61   v.info n_errs_found [msg] : show the nr of errors found so far and the given msg
     62   v.info open_fds         : show open file descriptors (only if --track-fds=yes)
     63   v.kill                  : kill the Valgrind process
     64   v.set gdb_output        : set valgrind output to gdb
     65   v.set log_output        : set valgrind output to log
     66   v.set mixed_output      : set valgrind output to log, interactive output to gdb
     67   v.set merge-recursive-frames <num> : merge recursive calls in max <num> frames
     68   v.set vgdb-error <errornr> : debug me at error >= <errornr>
     69 debugging valgrind internals monitor commands:
     70   v.do   expensive_sanity_check_general : do an expensive sanity check now
     71   v.info gdbserver_status : show gdbserver status
     72   v.info memory [aspacemgr] : show valgrind heap memory stats
     73      (with aspacemgr arg, also shows valgrind segments on log output)
     74   v.info exectxt          : show stacktraces and stats of all execontexts
     75   v.info scheduler        : show valgrind thread state and stacktrace
     76   v.info stats            : show various valgrind and tool stats
     77   v.info unwind <addr> [<len>] : show unwind debug info for <addr> .. <addr+len>
     78   v.set debuglog <level>  : set valgrind debug log level to <level>
     79   v.set hostvisibility [yes*|no] : (en/dis)ables access by gdb/gdbserver to
     80     Valgrind internal host status/memory
     81   v.translate <addr> [<traceflags>]  : debug translation of <addr> with <traceflags>
     82     (default traceflags 0b00100000 : show after instrumentation)
     83    An additional flag  0b100000000 allows to show gdbserver instrumentation
     84 memcheck monitor commands:
     85   xb <addr> [<len>]
     86         prints validity bits for <len> (or 1) bytes at <addr>
     87             bit values 0 = valid, 1 = invalid, __ = unaddressable byte
     88         Then prints the bytes values below the corresponding validity bits
     89         in a layout similar to the gdb command 'x /<len>xb <addr>'
     90         Example: xb 0x........ 10
     91   get_vbits <addr> [<len>]
     92         Similar to xb, but only prints the validity bytes by group of 4.
     93   make_memory [noaccess|undefined
     94                      |defined|Definedifaddressable] <addr> [<len>]
     95         mark <len> (or 1) bytes at <addr> with the given accessibility
     96   check_memory [addressable|defined] <addr> [<len>]
     97         check that <len> (or 1) bytes at <addr> have the given accessibility
     98             and outputs a description of <addr>
     99   leak_check [full*|summary]
    100                 [kinds kind1,kind2,...|reachable|possibleleak*|definiteleak]
    101                 [heuristics heur1,heur2,...]
    102                 [increased*|changed|any]
    103                 [unlimited*|limited <max_loss_records_output>]
    104             * = defaults
    105        where kind is one of:
    106          definite indirect possible reachable all none
    107        where heur is one of:
    108          stdstring length64 newarray multipleinheritance all none*
    109        Examples: leak_check
    110                  leak_check summary any
    111                  leak_check full kinds indirect,possible
    112                  leak_check full reachable any limited 100
    113   block_list <loss_record_nr>|<loss_record_nr_from>..<loss_record_nr_to>
    114                 [unlimited*|limited <max_blocks>]
    115                 [heuristics heur1,heur2,...]
    116         after a leak search, shows the list of blocks of <loss_record_nr>
    117         (or of the range <loss_record_nr_from>..<loss_record_nr_to>).
    118         With heuristics, only shows the blocks found via heur1,heur2,...
    119             * = defaults
    120   who_points_at <addr> [<len>]
    121         shows places pointing inside <len> (default 1) bytes at <addr>
    122         (with len 1, only shows "start pointers" pointing exactly to <addr>,
    123          with len > 1, will also show "interior pointers")
    124 monitor command request to kill this process
    125