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