The -var-update MI command should take the same print-values options as var-list children, however currently only the integer versions are supported.
Added --no-values, --all-values, and --simple-values long options.
Patch from ewan@codeplay.com
Paths
| Differential D8008
Added long 'print-values' option for var-update MI command. ClosedPublic Authored by ki.stfu on Mar 2 2015, 8:56 AM.
Details Summary The -var-update MI command should take the same print-values options as var-list children, however currently only the integer versions are supported. Patch from ewan@codeplay.com
Diff Detail Event TimelineEwanCrawford retitled this revision from to Added long 'print-values' option for var-update MI command. . EwanCrawford updated this object. Comment Actions See my comments.
This revision now requires changes to proceed.Mar 2 2015, 9:46 AM Comment Actions Thanks for the comments ki.stfu. My understanding of MIFormResponse() is that it is only called from CMICmdCmdVarUpdate::Execute() when there are composite types, in which case we wouldn't print the values for --simple-values. So we only need to check for --all-values and can ignore --simple-values. I'll add a check --simple-value to CMICmdCmdVarUpdate::Acknowledge() though, to print values for when m_bValueChangedNormalType is set.
This revision is now accepted and ready to land.Mar 3 2015, 4:10 AM This revision now requires review to proceed.Mar 4 2015, 3:13 AM ki.stfu retitled this revision from Added long 'print-values' option for var-update MI command. to Added long 'print-values' option for var-update MI command.. ki.stfu updated this object. Comment Actionsfix diff path Closed by commit rL231233: Added long 'print-values' option for var-update MI command. (authored by ki.stfu). · Explain WhyMar 4 2015, 3:23 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 21186 tools/lldb-mi/MICmdCmdVar.h
tools/lldb-mi/MICmdCmdVar.cpp
tools/lldb-mi/MICmnResources.cpp
|