From 0a3958e046662b4442d45b2f6071b40617ab1091 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Sat, 2 Jul 2011 00:25:22 +0000 Subject: several improvements to "type summary": - type names can now be regular expressions (exact matching is done first, and is faster) - integral (and floating) types can be printed as bitfields, i.e. ${var[low-high]} will extract bits low thru high of the value and print them - array subscripts are supported, both for arrays and for pointers. the syntax is ${*var[low-high]}, or ${*var[]} to print the whole array (the latter only works for statically sized arrays) - summary is now printed by default when a summary string references a variable. if that variable's type has no summary, value is printed instead. to force value, you can use %V as a format specifier - basic support for ObjectiveC: - ObjectiveC inheritance chains are now walked through - %@ can be specified as a summary format, to print the ObjectiveC runtime description for an object - some bug fixes llvm-svn: 134293 --- lldb/source/Core/RegularExpression.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lldb/source/Core/RegularExpression.cpp') diff --git a/lldb/source/Core/RegularExpression.cpp b/lldb/source/Core/RegularExpression.cpp index 7848931e392..6fb94d98bb5 100644 --- a/lldb/source/Core/RegularExpression.cpp +++ b/lldb/source/Core/RegularExpression.cpp @@ -176,4 +176,9 @@ RegularExpression::GetErrorAsCString (char *err_str, size_t err_str_max_len) con return ::regerror (m_comp_err, &m_preg, err_str, err_str_max_len); } +bool +RegularExpression::operator < (const RegularExpression& rhs) const +{ + return (m_re < rhs.m_re); +} -- cgit v1.2.3