hanchenye-llvm-project/lldb/source/Commands
Dave Lee 696f9706f3 [lldb] Set result error state in 'frame variable'
Ensure that errors in `frame variable` are reflected in result object.

The statistics for `frame variable` show invocations as being successful, even
when executing one of the error paths.

This change replaces `result.GetErrorStream()` with `result.AppendError()`,
which also sets the status to `eReturnStatusFailed`.

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

Recommitting after D116901 and D116863.

(cherry picked from commit 2c7d10c412)
2022-01-15 14:20:12 -08:00
..
CMakeLists.txt [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
CommandCompletions.cpp Remove redundant string initialization (NFC) 2021-12-26 09:39:26 -08:00
CommandObjectApropos.cpp Add a "command container" hierarchy to allow users to add container nodes. 2021-10-18 15:29:24 -07:00
CommandObjectApropos.h
CommandObjectBreakpoint.cpp Add a "current" token to the ThreadID option to break set/modify. 2021-08-06 15:29:55 -07:00
CommandObjectBreakpoint.h
CommandObjectBreakpointCommand.cpp
CommandObjectBreakpointCommand.h
CommandObjectCommands.cpp Add a "command container" hierarchy to allow users to add container nodes. 2021-10-18 15:29:24 -07:00
CommandObjectCommands.h
CommandObjectDisassemble.cpp [lldb] Use a struct to pass function search options to Module::FindFunction 2021-08-05 10:18:14 -07:00
CommandObjectDisassemble.h
CommandObjectExpression.cpp Modify "statistics dump" to dump JSON. 2021-10-21 12:14:21 -07:00
CommandObjectExpression.h
CommandObjectFrame.cpp [lldb] Set result error state in 'frame variable' 2022-01-15 14:20:12 -08:00
CommandObjectFrame.h
CommandObjectGUI.cpp
CommandObjectGUI.h
CommandObjectHelp.cpp Add a "command container" hierarchy to allow users to add container nodes. 2021-10-18 15:29:24 -07:00
CommandObjectHelp.h
CommandObjectLanguage.cpp
CommandObjectLanguage.h
CommandObjectLog.cpp
CommandObjectLog.h
CommandObjectMemory.cpp [lldb] Remove non address bits from memory read arguments 2022-01-11 13:24:09 +00:00
CommandObjectMemory.h
CommandObjectMemoryTag.cpp [lldb][AArch64] Mark mismatched tags in tag read output 2021-07-30 11:47:58 +01:00
CommandObjectMemoryTag.h
CommandObjectMultiword.cpp [lldb] Remove unused AproposAllSubCommands (NFC) 2022-01-02 11:30:51 -08:00
CommandObjectPlatform.cpp [lldb] Remove ConstString from Platform plugin names 2021-10-26 10:04:35 +02:00
CommandObjectPlatform.h
CommandObjectPlugin.cpp
CommandObjectPlugin.h
CommandObjectProcess.cpp Revert "Revert "Make it possible for lldb to launch a remote binary with no local file."" 2021-11-17 17:59:47 -08:00
CommandObjectProcess.h
CommandObjectQuit.cpp
CommandObjectQuit.h
CommandObjectRegexCommand.cpp Fix a thinko in the parsing of substitutions in CommandObjectRegexCommand. 2021-07-27 18:58:56 -07:00
CommandObjectRegexCommand.h
CommandObjectRegister.cpp
CommandObjectRegister.h
CommandObjectReproducer.cpp [lldb] Remove reproducer replay functionality 2021-12-17 17:14:52 -08:00
CommandObjectReproducer.h
CommandObjectScript.cpp
CommandObjectScript.h
CommandObjectSession.cpp
CommandObjectSession.h
CommandObjectSettings.cpp [lldb] [gdb-remote] Add eOpenOptionReadWrite for future gdb compat 2021-08-09 12:06:59 +02:00
CommandObjectSettings.h
CommandObjectSource.cpp [lldb] Use a struct to pass function search options to Module::FindFunction 2021-08-05 10:18:14 -07:00
CommandObjectSource.h
CommandObjectStats.cpp Add modules stats into the "statistics dump" command. 2021-10-25 11:50:02 -07:00
CommandObjectStats.h
CommandObjectTarget.cpp [lldb] Correctly display the number of types found 2022-01-15 10:31:49 -08:00
CommandObjectTarget.h
CommandObjectThread.cpp [lldb][NFC] Inclusive Language: rename master plan to controlling plan 2021-11-11 15:04:44 -06:00
CommandObjectThread.h
CommandObjectThreadUtil.cpp
CommandObjectThreadUtil.h
CommandObjectTrace.cpp [lldb] Return StringRef from PluginInterface::GetPluginName 2021-10-18 10:14:42 +02:00
CommandObjectTrace.h
CommandObjectType.cpp Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
CommandObjectType.h
CommandObjectVersion.cpp [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00
CommandObjectVersion.h
CommandObjectWatchpoint.cpp Use StringRef::contains (NFC) 2021-10-23 20:41:46 -07:00
CommandObjectWatchpoint.h
CommandObjectWatchpointCommand.cpp
CommandObjectWatchpointCommand.h
CommandOptionsProcessLaunch.cpp
CommandOptionsProcessLaunch.h
Options.td Fix "settings set -g" so it works again. 2021-12-28 11:03:09 -08:00
OptionsBase.td