summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lldbDataFormatters.py
Commit message (Collapse)AuthorAgeFilesLines
* Add LLDB dataformatters for llvm::StringRef and lldb_private::ConstStringAdrian Prantl2019-08-161-0/+23
| | | | | | | | | | These data formatters make the string value appear in Xcode's variables view (and on the command line) without having to expand the data structure. Differential Revision: https://reviews.llvm.org/D66354 llvm-svn: 369175
* [utils] Add a lldb data formatter for llvm::SmallString.Davide Italiano2019-04-251-0/+11
| | | | | | | | | Result: (lldb) p val (llvm::SmallString<32>) $31 = "patatino" llvm-svn: 359157
* [utils] Update SmallVector lldb formatter for r337514Justin Bogner2018-11-061-4/+2
| | | | | | | | SmallVector was changed to store a begin and a size rather than a begin and an end a while back. Update the formatter to look at the correct members. llvm-svn: 346252
* [utils] Fix the llvm::Optional data formatterVedant Kumar2018-07-231-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | The llvm::Optional data formatter needs to look through the `Storage` container if it's present. Before: 220    if (Op && Op->getOp() != dwarf::DW_OP_LLVM_fragment) -> 221      HasComplexExpression = true;    222    223    // If the register can only be described by a complex expression (i.e.,    224    // multiple subregisters) it doesn't safely compose with another complex Target 0: (llc) stopped. (lldb) p Op (llvm::Optional<llvm::DIExpression::ExprOperand>) $0 = None After: (lldb) p Op (llvm::Optional<llvm::DIExpression::ExprOperand>) $0 = (llvm::DIExpression::ExprOperand) storage = { Op = 0x000000010603d460 } llvm-svn: 337752
* utils: Teach lldbDataFormatters about llvm::OptionalJustin Bogner2015-02-201-0/+10
| | | | llvm-svn: 229956
* utils: Teach lldbDataFormatters how to format ArrayRefsJustin Bogner2014-09-111-0/+33
| | | | llvm-svn: 217567
* utils: Teach lldbDataFormatters to load automaticallyJustin Bogner2014-05-281-4/+12
| | | | | | | Add an __lldb_init_module function so that importing the lldbDataFormatters script automatically adds the formatters. llvm-svn: 209712
* Simplify the SmallVector pretty printer for LLDB a bit and make it work with ↵Benjamin Kramer2012-11-101-15/+9
| | | | | | reference types. llvm-svn: 167674
* Add an LLDB data formatter script for llvm::SmallVector, maybe this is ↵Benjamin Kramer2012-01-171-0/+53
helpful to someone else. This lets lldb give sane output for SmallVectors, e.g. Before: (lldb) p sv (llvm::SmallVector<int, 10>) $0 = { (llvm::SmallVectorImpl<int>) llvm::SmallVectorImpl<int> = { (llvm::SmallVectorTemplateBase<int>) llvm::SmallVectorTemplateBase<int> = { (llvm::SmallVectorTemplateCommon<int>) llvm::SmallVectorTemplateCommon<int> = { (llvm::SmallVectorBase) llvm::SmallVectorBase = { (void *) BeginX = 0x00007fff5fbff960 ... } After: (lldb) p sv (llvm::SmallVector<int, 10>) $0 = { (int) [0] = 42 (int) [1] = 23 ... } The script is still a bit rough so expect crashes for vectors of complex types. Synthetic children are _not_ available in xcode 4.2, newer LLDBs should work though. llvm-svn: 148308
OpenPOWER on IntegriCloud