llvm-project/lldb/source/Commands
Pavel Labath 7263f1bda6 Invert ArchSpec<->Platform dependency
Summary:
ArchSpec::SetTriple was taking a Platform as an argument, and used it to
fill in missing pieces of the specified triple. I invert the dependency
by moving this code to other classes. For this purpose, I've created
three new functions.
- HostInfo::GetAugmentedArchSpec: fills in the triple using the host
  platform (this used to be implemented by passing a null platform
  pointer). By putting this code in the Host module, we can provide a
  way to anyone who does not have a platform instance (lldb-server) an
  easy way to get Host data.
- Platform::GetAugmentedArchSpec: if you have a platform instance, you
  can call this to let it fill in the triple.
- static Platform::GetAugmentedArchSpec: implements the "if platform ==
  0 then use_host() else use_platform()" part.

Reviewers: zturner, jingham, clayborg

Subscribers: mgorny, javed.absar, lldb-commits

Differential Revision: https://reviews.llvm.org/D39387

llvm-svn: 316987
2017-10-31 10:56:03 +00:00
..
CMakeLists.txt [cmake] add missing dependency lldbCommands->lldbBase 2017-02-09 01:17:34 +00:00
CommandCompletions.cpp Support: Have directory_iterator::status() return FindFirstFileEx/FindNextFile results on Windows. 2017-10-10 22:19:46 +00:00
CommandObjectApropos.cpp Add methods to enable using formatv syntax in LLDB. 2016-12-16 04:27:00 +00:00
CommandObjectApropos.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectArgs.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectArgs.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectBreakpoint.cpp Wire up the breakpoint name help string. 2017-09-15 00:52:35 +00:00
CommandObjectBreakpoint.h Make breakpoint names real entities. 2017-09-14 20:22:49 +00:00
CommandObjectBreakpointCommand.cpp Make breakpoint names real entities. 2017-09-14 20:22:49 +00:00
CommandObjectBreakpointCommand.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectBugreport.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectBugreport.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectCommands.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectCommands.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectDisassemble.cpp Invert ArchSpec<->Platform dependency 2017-10-31 10:56:03 +00:00
CommandObjectDisassemble.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectExpression.cpp Add help text for "expression" telling how to enter multi-line mode. 2017-07-19 23:25:42 +00:00
CommandObjectExpression.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectFrame.cpp Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
CommandObjectFrame.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectGUI.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectGUI.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectHelp.cpp Modernize the Args access pattern in a few more commands. 2016-12-09 01:08:29 +00:00
CommandObjectHelp.h Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectLanguage.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectLanguage.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectLog.cpp Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
CommandObjectLog.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectMemory.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectMemory.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectMultiword.cpp Remove some more uses of Args::GetArgumentAtIndex. 2016-12-09 05:46:41 +00:00
CommandObjectPlatform.cpp Invert ArchSpec<->Platform dependency 2017-10-31 10:56:03 +00:00
CommandObjectPlatform.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectPlugin.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectPlugin.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectProcess.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectProcess.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectQuit.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
CommandObjectQuit.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectRegister.cpp replace uses of strerror with llvm::sys::StrError 2017-06-06 14:06:17 +00:00
CommandObjectRegister.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectSettings.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectSettings.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectSource.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectSource.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectSyntax.cpp Remove some more uses of Args::GetArgumentAtIndex. 2016-12-09 05:46:41 +00:00
CommandObjectSyntax.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectTarget.cpp Implement interactive command interruption 2017-10-05 23:41:28 +00:00
CommandObjectTarget.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectThread.cpp Re-land r313210 - Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump) 2017-09-19 18:07:33 +00:00
CommandObjectThread.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectType.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectType.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectVersion.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectVersion.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectWatchpoint.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectWatchpoint.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandObjectWatchpointCommand.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
CommandObjectWatchpointCommand.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00