llvm-project/lldb/source/Plugins/Process/Utility
Sean Callanan 579e70c9b0 Add a DiagnosticManager replace error streams in the expression parser.
We want to do a better job presenting errors that occur when evaluating
expressions. Key to this effort is getting away from a model where all
errors are spat out onto a stream where the client has to take or leave
all of them.

To this end, this patch adds a new class, DiagnosticManager, which
contains errors produced by the compiler or by LLDB as an expression
is created. The DiagnosticManager can dump itself to a log as well as
to a string. Clients will (in the future) be able to filter out the
errors they're interested in by ID or present subsets of these errors
to the user.

This patch is not intended to change the *users* of errors - only to
thread DiagnosticManagers to all the places where streams are used. I
also attempt to standardize our use of errors a bit, removing trailing
newlines and making clients omit 'error:', 'warning:' etc. and instead
pass the Severity flag.

The patch is testsuite-neutral, with modifications to one part of the
MI tests because it relied on "error: error:" being erroneously
printed. This patch fixes the MI variable handling and the testcase.

<rdar://problem/22864976>

llvm-svn: 263859
2016-03-19 00:03:59 +00:00
..
ARMDefines.h Handle thumb IT instructions correctly all the time. 2014-12-09 23:31:02 +00:00
ARMUtils.h Fix typos. 2014-07-08 18:05:41 +00:00
CMakeLists.txt NetBSD: Define initial RegisterContextNetBSD_x86_64 2016-02-02 03:47:44 +00:00
DynamicRegisterInfo.cpp Clean up register naming conventions inside lldb. 2015-09-15 23:20:34 +00:00
DynamicRegisterInfo.h Added XML to the host layer. 2015-05-26 18:00:51 +00:00
FreeBSDSignals.cpp [LLDB] Insert names with same signo as alias instead of a new entry 2015-10-20 07:05:46 +00:00
FreeBSDSignals.h Refactor Unix signals. 2015-07-14 01:09:28 +00:00
GDBRemoteSignals.cpp Refactor Unix signals. 2015-07-14 01:09:28 +00:00
GDBRemoteSignals.h Refactor Unix signals. 2015-07-14 01:09:28 +00:00
HistoryThread.cpp Remove unused class variable and update all callers/users. 2014-09-09 06:14:23 +00:00
HistoryThread.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
HistoryUnwind.cpp Remove unused class variable and update all callers/users. 2014-09-09 06:14:23 +00:00
HistoryUnwind.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
InferiorCallPOSIX.cpp Add a DiagnosticManager replace error streams in the expression parser. 2016-03-19 00:03:59 +00:00
InferiorCallPOSIX.h Prevent infinite recursive loop in AppleObjCTrampolineHandler constructor 2016-01-08 20:32:35 +00:00
InstructionUtils.h A << operation would be undefined for a bit-selecting 2014-10-17 01:52:30 +00:00
LinuxSignals.cpp [LLDB] Insert names with same signo as alias instead of a new entry 2015-10-20 07:05:46 +00:00
LinuxSignals.h Refactor Unix signals. 2015-07-14 01:09:28 +00:00
MipsLinuxSignals.cpp [LLDB] Insert names with same signo as alias instead of a new entry 2015-10-20 07:05:46 +00:00
MipsLinuxSignals.h Refactor Unix signals. 2015-07-14 01:09:28 +00:00
NetBSDSignals.cpp Welcome to NetBSD signals 2015-12-15 00:50:19 +00:00
NetBSDSignals.h Welcome to NetBSD signals 2015-12-15 00:50:19 +00:00
RegisterContextDarwin_arm.cpp Some 32-bit arm corefiles on darwin may have their general purpose 2016-01-20 05:17:13 +00:00
RegisterContextDarwin_arm.h Some 32-bit arm corefiles on darwin may have their general purpose 2016-01-20 05:17:13 +00:00
RegisterContextDarwin_arm64.cpp Make lldb::endian::InlHostByteOrder() private. 2015-11-07 04:40:13 +00:00
RegisterContextDarwin_arm64.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextDarwin_i386.cpp Clean up register naming conventions inside lldb. 2015-09-15 23:20:34 +00:00
RegisterContextDarwin_i386.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextDarwin_x86_64.cpp Make lldb::endian::InlHostByteOrder() private. 2015-11-07 04:40:13 +00:00
RegisterContextDarwin_x86_64.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextDummy.cpp Clean up register naming conventions inside lldb. 2015-09-15 23:20:34 +00:00
RegisterContextDummy.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextFreeBSD_arm.cpp Add 64/128 bit arm neon register definitions on linux 2015-11-26 15:02:31 +00:00
RegisterContextFreeBSD_arm.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextFreeBSD_arm64.cpp Handle FreeBSD/arm64 core files 2015-03-26 14:20:00 +00:00
RegisterContextFreeBSD_arm64.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextFreeBSD_i386.cpp Same issue as in D8685 but for i386. 2015-04-21 23:00:58 +00:00
RegisterContextFreeBSD_i386.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextFreeBSD_mips64.cpp [LLDB][MIPS] Fix offsets of all register sets and add MSA regset and FRE=1 mode support 2015-08-17 13:40:17 +00:00
RegisterContextFreeBSD_mips64.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextFreeBSD_powerpc.cpp Implement initial Altivec support 2015-02-05 07:12:01 +00:00
RegisterContextFreeBSD_powerpc.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextFreeBSD_x86_64.cpp Fix FreeBSD crash after r233837 2015-04-03 20:49:08 +00:00
RegisterContextFreeBSD_x86_64.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextHistory.cpp Clean up register naming conventions inside lldb. 2015-09-15 23:20:34 +00:00
RegisterContextHistory.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextLLDB.cpp Add support for DW_OP_push_object_address in dwarf expressions 2016-02-26 14:21:10 +00:00
RegisterContextLLDB.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextLinux_arm.cpp Add 64/128 bit arm neon register definitions on linux 2015-11-26 15:02:31 +00:00
RegisterContextLinux_arm.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextLinux_arm64.cpp Fix the handling of FPR offsets in Linux arm/aarch64 register contexts 2015-09-07 10:11:23 +00:00
RegisterContextLinux_arm64.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextLinux_i386.cpp X86: Change FTAG register size in FXSAVE structure 2015-10-12 09:57:00 +00:00
RegisterContextLinux_i386.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextLinux_mips.cpp [LLDB][MIPS] Fix GetUserRegisterInfoCount to count no of regs which are physically present 2015-11-03 09:13:45 +00:00
RegisterContextLinux_mips.h [LLDB][MIPS] Fix GetUserRegisterInfoCount to count no of regs which are physically present 2015-11-03 09:13:45 +00:00
RegisterContextLinux_mips64.cpp [LLDB][MIPS] Fix GetUserRegisterInfoCount to count no of regs which are physically present 2015-11-03 09:13:45 +00:00
RegisterContextLinux_mips64.h [LLDB][MIPS] Fix GetUserRegisterInfoCount to count no of regs which are physically present 2015-11-03 09:13:45 +00:00
RegisterContextLinux_x86_64.cpp Set orig_eax to -1 for Linux x86 platforms 2015-08-13 09:05:11 +00:00
RegisterContextLinux_x86_64.h Limit scope of RegisterContextPOSIX.h header 2015-09-14 13:16:59 +00:00
RegisterContextMacOSXFrameBackchain.cpp LLGS Android target support - for Andy Chien : http://reviews.llvm.org/D6166 2014-11-08 01:41:49 +00:00
RegisterContextMacOSXFrameBackchain.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextMach_arm.cpp
RegisterContextMach_arm.h
RegisterContextMach_i386.cpp
RegisterContextMach_i386.h
RegisterContextMach_x86_64.cpp
RegisterContextMach_x86_64.h
RegisterContextMemory.cpp Replace uint32_t by lldb::RegisterKing in register context API. 2014-07-02 09:51:28 +00:00
RegisterContextMemory.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextNetBSD_x86_64.cpp [NetBSD] Remove dead code. 2016-02-03 20:13:50 +00:00
RegisterContextNetBSD_x86_64.h NetBSD: Define initial RegisterContextNetBSD_x86_64 2016-02-02 03:47:44 +00:00
RegisterContextPOSIX_arm.cpp Add 64/128 bit arm neon register definitions on linux 2015-11-26 15:02:31 +00:00
RegisterContextPOSIX_arm.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextPOSIX_arm64.cpp Create NativeRegisterContext for android-arm64 2015-03-13 11:36:47 +00:00
RegisterContextPOSIX_arm64.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextPOSIX_mips64.cpp Replace uint32_t by lldb::RegisterKing in register context API. 2014-07-02 09:51:28 +00:00
RegisterContextPOSIX_mips64.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextPOSIX_powerpc.cpp Quiet Coverity 2015-02-12 05:31:31 +00:00
RegisterContextPOSIX_powerpc.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextPOSIX_x86.cpp Rename lldb registers to contain lldb_ prefix. 2014-11-21 02:00:21 +00:00
RegisterContextPOSIX_x86.h [LLDB] Fix Clang-tidy modernize-use-override warnings in some headers in source/Plugins/Process/Utility; other minor fixes. 2015-10-17 00:19:57 +00:00
RegisterContextThreadMemory.cpp Make sure if a thread specifies a 'register_data_addr' in a python operating system plug-in, that is is used to fetch the register values. 2014-12-11 23:53:52 +00:00
RegisterContextThreadMemory.h Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins; other minor fixes. 2015-10-21 18:46:17 +00:00
RegisterContext_mips.h Clean up register naming conventions inside lldb. 2015-09-15 23:20:34 +00:00
RegisterContext_powerpc.h Clean up register naming conventions inside lldb. 2015-09-15 23:20:34 +00:00
RegisterContext_x86.h X86: Change FTAG register size in FXSAVE structure 2015-10-12 09:57:00 +00:00
RegisterInfoInterface.h Add missing include to RegisterInfoInterface.h 2015-08-13 10:41:55 +00:00
RegisterInfos_arm.h Add 64/128 bit arm neon register definitions on linux 2015-11-26 15:02:31 +00:00
RegisterInfos_arm64.h Fix Clang-tidy modernize-use-nullptr warnings in source/Plugins/Process/Utility headers; other minor fixes. 2015-10-30 00:55:29 +00:00
RegisterInfos_i386.h Fix Clang-tidy modernize-use-nullptr warnings in source/Plugins/Process/Utility headers; other minor fixes. 2015-10-30 00:55:29 +00:00
RegisterInfos_mips.h Fix Clang-tidy modernize-use-nullptr warnings in source/Plugins/Process/Utility headers; other minor fixes. 2015-10-30 00:55:29 +00:00
RegisterInfos_mips64.h Fix Clang-tidy modernize-use-nullptr warnings in source/Plugins/Process/Utility headers; other minor fixes. 2015-10-30 00:55:29 +00:00
RegisterInfos_powerpc.h Clean up register naming conventions inside lldb. 2015-09-15 23:20:34 +00:00
RegisterInfos_x86_64.h Fix Clang-tidy modernize-use-nullptr warnings in source/Plugins/Process/Utility headers; other minor fixes. 2015-10-30 00:55:29 +00:00
StopInfoMachException.cpp The SetStopInfo from a Mach Exception was setting the stop 2016-02-03 19:45:31 +00:00
StopInfoMachException.h Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins; other minor fixes. 2015-10-21 18:46:17 +00:00
ThreadMemory.cpp Fix stepping a virtual thread when the python operating system was enabled. 2015-04-07 22:17:41 +00:00
ThreadMemory.h Fix Clang-tidy modernize-use-nullptr warnings in source/Plugins/Process/Utility headers; other minor fixes. 2015-10-30 00:55:29 +00:00
UnwindLLDB.cpp Fix to solve Bug 23139 & Bug 23560 2015-11-13 10:47:49 +00:00
UnwindLLDB.h Fix to solve Bug 23139 & Bug 23560 2015-11-13 10:47:49 +00:00
UnwindMacOSXFrameBackchain.cpp
UnwindMacOSXFrameBackchain.h Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins; other minor fixes. 2015-10-21 18:46:17 +00:00
lldb-arm-register-enums.h Add 64/128 bit arm neon register definitions on linux 2015-11-26 15:02:31 +00:00
lldb-arm64-register-enums.h Create NativeRegisterContext for android-arm64 2015-03-13 11:36:47 +00:00
lldb-mips-freebsd-register-enums.h [LLDB][MIPS] Fix offsets of all register sets and add MSA regset and FRE=1 mode support 2015-08-17 13:40:17 +00:00
lldb-mips-linux-register-enums.h [LLDB][MIPS] Fix offsets of all register sets and add MSA regset and FRE=1 mode support 2015-08-17 13:40:17 +00:00
lldb-x86-register-enums.h Fixing TestRegisters on Linux with LLGS 2015-01-23 22:57:00 +00:00