--- NEWS | 18 ++++++++++++++++ doc/gdb.texinfo | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) --- a/NEWS +++ b/NEWS @@ -84,6 +84,24 @@ qRelocInsn * New commands +record pic [] + Save the execution log to a vcg file. + +set record pic type line|function + Set or show the type of the nodes that `record pic' saved. + +set record pic hide-nofunction on|off + Set or show whether `record pic' hide the nodes that don't have + the function name. + +set record pic hide-nosource on|off + Set or show whether `record pic' hide the nodes that don't have + the source message. + +set record pic hide-sameaddr on|off + Set or show whether `record pic' hide the nodes that have the + same address node in vcg file. + set target-file-system-kind unix|dos-based|auto show target-file-system-kind Set or show the assumed file system kind for target reported file --- a/doc/gdb.texinfo +++ b/doc/gdb.texinfo @@ -5639,6 +5639,67 @@ usual ``live'' debugging of the process When the inferior process exits, or @value{GDBN} detaches from it, process record and replay target will automatically stop itself. +@kindex record pic +@item record pic @var{filename} +Save the execution log to a vcg file @file{@var{filename}}. +Default filename is 'gdb_record_.vcg'. + +@kindex set record pic type +@item set record pic type @var{type} +Set the type of the nodes that @code{record pic} saved. + +When @var{type} is set to @code{line} (the default), each node of vcg +file that @code{record pic} saved will be a line of the inferior. + +When @var{type} is set to @code{function}, each node of vcg file that +@code{record pic} saved will be a function of the inferior. + +@kindex show record pic type +@item show record pic type +Show the current setting of @code{pic type}. + +@kindex set record pic hide-nofunction +@item set record pic hide-nofunction +Set whether @code{record pic} hide the nodes that don't have +the function name. + +If ON (the default), @code{record pic} will hide the nodes that don't +have the function name. + +@kindex show record pic hide-nofunction +@item show record pic hide-nofunction +Show the current setting of @code{pic hide-nofunction}. + +@kindex set record pic hide-nosource +@item set record pic hide-nosource +Set whether @code{record pic} hide the nodes that don't have +the source message. + +If ON (the default), @code{record pic} will hide the nodes that +don't have the source message. + +@kindex show record pic hide-nosource +@item show record pic hide-nosource +Show the current setting of @code{pic hide-nosource}. + +@kindex set record pic hide-sameaddr +@item set record pic hide-sameaddr +Set whether @code{record pic} hide the nodes that have the same +address node in vcg file. + +If ON (the default), @code{record pic} will hide the nodes that have +the same address node in vcg file. And @code{record pic} will show +the execute count number of this node in format @code{c:number} + +If OFF, @code{record pic} will show the nodes that have the same +address node in vcg file. And @code{record pic} will show the +instruction number in format @code{i:number} that +@value{record goto} support. + +@kindex show record pic hide-same +@item show record pic hide-same +Show the current setting of @code{pic hide-same}. + @kindex set record insn-number-max @item set record insn-number-max @var{limit} Set the limit of instructions to be recorded. Default value is 200000.