[Lldb-commits] [lldb] r135653 - in /lldb/trunk/examples/summaries: ./ essentials lldb

Enrico Granata granata.enrico at gmail.com
Wed Jul 20 18:40:18 PDT 2011

Author: enrico
Date: Wed Jul 20 20:40:17 2011
New Revision: 135653

URL: http://llvm.org/viewvc/llvm-project?rev=135653&view=rev
essentials contains two small summaries that you might really want to use; lldb contains some basic summaries for use in debugging LLDB itself. to use them, you must type category enable lldb


Added: lldb/trunk/examples/summaries/essentials
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/summaries/essentials?rev=135653&view=auto
--- lldb/trunk/examples/summaries/essentials (added)
+++ lldb/trunk/examples/summaries/essentials Wed Jul 20 20:40:17 2011
@@ -0,0 +1,2 @@
+type summary add -f "${var._M_dataplus._M_p}" std::string
+type summary add -f "\"${var%@}\"" "NSString *"

Added: lldb/trunk/examples/summaries/lldb
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/summaries/lldb?rev=135653&view=auto
--- lldb/trunk/examples/summaries/lldb (added)
+++ lldb/trunk/examples/summaries/lldb Wed Jul 20 20:40:17 2011
@@ -0,0 +1,12 @@
+type summary add -f "Type: ${var.m_type%E}, Code: ${var.m_code}, Message: ${var.m_string}" lldb_private::Error -w lldb
+type summary add -f "${var.m_string}" lldb_private::ConstString -w lldb
+type summary add -f "${var.m_language%E}" lldb_private::Language -w lldb
+type summary add -f "${var.m_re}" lldb_private::RegularExpression -w lldb
+type summary add -f "UserID(${var.m_uid})" lldb_private::UserID -w lldb
+type summary add -f "${var.m_name}" lldb_private::ValueObject -w lldb
+type summary add -f "${var.ptr_.m_name}" lldb_private::ValueObjectSP -w lldb
+type summary add -f "${var.m_reg_info.name}" lldb_private::ValueObjectRegister -w lldb
+type summary add -f "{${var.m_expr_text}}" lldb_private::ClangExpression -w lldb
+type summary add -f "Command name: ${var.m_cmd_name}" lldb_private::CommandObject -w lldb
+type summary add -f "${var.m_type.m_name} ${var.m_name}" lldb_private::Variable -w lldb
+type summary add -f "ID: ${var.m_stop_id}, ${var.m_description}" lldb_private::StopInfo -w lldb

More information about the lldb-commits mailing list