llvm-project/lldb/source/Core
Enrico Granata 30f287fde5 Add a new way to bind a format to a type: by enum type
The "type format add" command gets a new flag --type (-t). If you pass -t <sometype>, upon fetching the value for an object of your type,
LLDB will display it as-if it was of enumeration type <sometype>
This is useful in cases of non-contiguous enums where there are empty gaps of unspecified values, and as such one cannot type their variables as the enum type,
but users would still like to see them as-if they were of the enum type (e.g. DWARF field types with their user-reserved ranges)

The SB API has also been improved to handle both types of formats, and a test case is added

llvm-svn: 198105
2013-12-28 08:44:02 +00:00
..
Address.cpp For logical backtrace work, lldb needs to track Module unloads etc & symoblicate an address based on a point in time 2013-12-06 01:12:00 +00:00
AddressRange.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
AddressResolver.cpp
AddressResolverFileLine.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
AddressResolverName.cpp <rdar://problem/11398407> 2013-05-18 00:11:21 +00:00
ArchSpec.cpp POSIX RegisterContext for mips64 2013-10-10 00:59:47 +00:00
Baton.cpp Don't print out the baton pointer value for simple Baton classes. 2011-06-21 20:47:20 +00:00
Broadcaster.cpp <rdar://problem/13521159> 2013-03-27 23:08:40 +00:00
CMakeLists.txt Convert to UNIX line endings. 2013-09-25 10:37:32 +00:00
Communication.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
Connection.cpp
ConnectionFileDescriptor.cpp sin_len is not available in the structure sockaddr_in under GNU/Linux. Fix the build failure. Patch by Todd Fiala (and many other who proposed similar patches) 2013-12-12 13:45:47 +00:00
ConnectionMachPort.cpp Fix some names in the wake of my Mach-O changes to LLVM. 2013-08-27 05:04:57 +00:00
ConnectionSharedMemory.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
ConstString.cpp Changed the bool conversion operator on ConstString 2013-10-03 22:27:29 +00:00
DataBufferHeap.cpp <rdar://problem/14521548> 2013-07-24 18:17:35 +00:00
DataBufferMemoryMap.cpp On Windows MapViewOfFile requires the offset to be aligned on the system dwAllocationGranularity 2013-09-26 18:52:08 +00:00
DataEncoder.cpp Fixed the ValidOffsetForDataOfSize() to use simpler logic. Fixed DataExtractor::BytesLeft() to return the correct value. 2013-03-21 00:29:45 +00:00
DataExtractor.cpp For logical backtrace work, lldb needs to track Module unloads etc & symoblicate an address based on a point in time 2013-12-06 01:12:00 +00:00
Debugger.cpp Fixed internal code to not link against and code from "lldb/API/*". 2013-12-02 19:35:49 +00:00
Disassembler.cpp Handle endianness in the Opcode class 2013-12-09 19:45:33 +00:00
DynamicLoader.cpp <rdar://problem/13854277> 2013-05-10 21:47:16 +00:00
EmulateInstruction.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
Error.cpp Added a 'jump' command, similar to GDBs. 2013-09-12 02:20:34 +00:00
Event.cpp Improve the broadcast event dumping. 2012-10-29 18:08:18 +00:00
FileLineResolver.cpp Changed the bool conversion operator on ConstString 2013-10-03 22:27:29 +00:00
FileSpecList.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
History.cpp Resolve printf formatting warnings on Linux: 2012-11-29 21:49:15 +00:00
InputReader.cpp Fix Linux build warnings due to redefinition of macros: 2012-12-05 00:20:57 +00:00
InputReaderEZ.cpp Headers cleanup 2012-03-20 19:33:01 +00:00
InputReaderStack.cpp Create new class, InputReaderStack, to better handle 2011-06-02 19:18:55 +00:00
Language.cpp
Listener.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
Log.cpp Change a printf() formatter to use %d for a uint32_t. 2013-09-11 21:00:37 +00:00
Makefile Remove lldb's custom copy of the C++ demangler, used only on Mac 2013-07-03 04:52:51 +00:00
Mangled.cpp Pickup fixes for demangling crashers. 2013-12-12 17:39:39 +00:00
Module.cpp For logical backtrace work, lldb needs to track Module unloads etc & symoblicate an address based on a point in time 2013-12-06 01:12:00 +00:00
ModuleChild.cpp <rdar://problem/10103468> 2012-02-24 01:59:29 +00:00
ModuleList.cpp Added a 'jump' command, similar to GDBs. 2013-09-12 02:20:34 +00:00
Opcode.cpp Handle endianness in the Opcode class 2013-12-09 19:45:33 +00:00
PluginManager.cpp Add a new system runtime plugin type - just the top level 2013-11-05 03:57:19 +00:00
RegisterValue.cpp RegisterValues can now report their contents as 2013-04-30 21:41:44 +00:00
RegularExpression.cpp <rdar://problem/13966084> 2013-05-23 20:27:15 +00:00
Scalar.cpp Check for division by zero when performing modulus 2013-08-08 17:57:00 +00:00
SearchFilter.cpp Changed the bool conversion operator on ConstString 2013-10-03 22:27:29 +00:00
Section.cpp For logical backtrace work, lldb needs to track Module unloads etc & symoblicate an address based on a point in time 2013-12-06 01:12:00 +00:00
SourceManager.cpp Fix a bunch of compile time warnings and a build failure on ubuntu. 2013-08-30 17:50:57 +00:00
State.cpp More Linux warnings fixes (remove default labels as needed): 2012-12-07 20:51:09 +00:00
Stream.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
StreamAsynchronousIO.cpp After discussing with Chris Lattner, we require C++11, so lets get rid of the macros and just use C++11. 2013-04-18 22:45:39 +00:00
StreamCallback.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
StreamFile.cpp Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
StreamGDBRemote.cpp merge lldb-platform-work branch (and assorted fixes) into trunk 2013-08-26 23:57:52 +00:00
StreamString.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
StringList.cpp Sort out a number of mismatched integer types in order to cut down the number of compiler warnings. 2013-06-19 19:04:53 +00:00
Timer.cpp MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00
UUID.cpp Added a way to extract the module specifications from a file. A module specification is information that is required to describe a module (executable, shared library, object file, ect). This information includes host path, platform path (remote path), symbol file path, UUID, object name (for objects in .a files for example you could have an object name of "foo.o"), and target triple. Module specification can be used to create a module, or used to add a module to a target. A list of module specifications can be used to enumerate objects in container objects (like universal mach files and BSD archive files). 2013-07-08 22:22:41 +00:00
UserID.cpp Implemented a types.py module that allows types to be inspected for padding. 2013-06-19 21:50:28 +00:00
UserSettingsController.cpp Fix Linux build warnings due to redefinition of macros: 2012-12-05 00:20:57 +00:00
VMRange.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
Value.cpp For logical backtrace work, lldb needs to track Module unloads etc & symoblicate an address based on a point in time 2013-12-06 01:12:00 +00:00
ValueObject.cpp Add a new way to bind a format to a type: by enum type 2013-12-28 08:44:02 +00:00
ValueObjectCast.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectChild.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectConstResult.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectConstResultChild.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectConstResultImpl.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectDynamicValue.cpp Further fixes to the dynamic type system prompted by ObjCDataFormatterTestCase.test_nserror_with_dsym_and_run_command 2013-10-31 22:42:00 +00:00
ValueObjectList.cpp <rdar://problem/13069948> 2013-01-25 18:06:21 +00:00
ValueObjectMemory.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
ValueObjectRegister.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ValueObjectSyntheticFilter.cpp <rdar://problem/15530080> 2013-11-22 00:02:13 +00:00
ValueObjectVariable.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00