summaryrefslogtreecommitdiffstats
path: root/lldb
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify Triple::ppc64{,le} checks with Triple::isPPC64()Fangrui Song2019-05-165-25/+14
| | | | | | | | | | While here, update some ppc64le specific check to isPPC64(), if it applies to big-endian as well, in the hope that it will ease the support of big-endian if people are interested in this area. The big-endian variant is used by at least FreeBSD, Gentoo Linux, Adélie Linux, and Void Linux. llvm-svn: 360868
* Simplify ArchSpec::IsMIPS()Fangrui Song2019-05-1610-66/+15
| | | | llvm-svn: 360865
* Update LLDB license on the LLDB home page to Apache+LLVM.Adrian Prantl2019-05-151-3/+4
| | | | llvm-svn: 360822
* Get back the navigation sidebar on the LLDB website.Adrian Prantl2019-05-156-116/+177
| | | | | | | | | This returns the look & feel of the Sphinx-generated LLDB website to the original pre-Sphinx layout. Differential Revision: https://reviews.llvm.org/D61913 llvm-svn: 360819
* [lldb] [test] Skip one more TestMiBreak on NetBSDMichal Gorny2019-05-151-1/+1
| | | | llvm-svn: 360800
* Permit cross-CU referencesJan Kratochvil2019-05-1513-131/+110
| | | | | | | | | | | | | | So far dw_offset_t was global for the whole SymbolFileDWARF but with .debug_types the same dw_offset_t may mean two different things depending on its section (=CU). So references now return whole new referenced DWARFDIE instead of just dw_offset_t. This means that some functions have to now handle 16 bytes instead of 8 bytes but I do not see that anywhere performance critical. Differential Revision: https://reviews.llvm.org/D61502 llvm-svn: 360795
* [lldb] [test] Mark frequently failing flaky tests skipped on NetBSDMichal Gorny2019-05-154-4/+6
| | | | llvm-svn: 360767
* Delete unnecessary copy ctors/copy assignment operatorsFangrui Song2019-05-1530-202/+3
| | | | | | It's the simplest and gives the cleanest semantics. llvm-svn: 360762
* [lldb] [lit] Pass --mode=compile to fix compiler-full-path.testMichal Gorny2019-05-151-4/+5
| | | | | | | | | Pass '--mode=compile' to fix compiler-full-path.test failure on NetBSD buildbot (apparently due to lack of 'link' executable). Fixes r360355. Acked by Pavel Labath. llvm-svn: 360761
* [ASTImporter] Use llvm::Expected and Error in the importer APIGabor Marton2019-05-155-43/+106
| | | | | | | | | | | | | | | | | | | | | | Summary: This is the final phase of the refactoring towards using llvm::Expected and llvm::Error in the ASTImporter API. This involves the following: - remove old Import functions which returned with a pointer, - use the Import_New functions (which return with Err or Expected) everywhere and handle their return value - rename Import_New functions to Import This affects both Clang and LLDB. Reviewers: shafik, teemperor, aprantl, a_sidorin, balazske, a.sidorin Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits, lldb-commits Tags: #clang, #lldb Differential Revision: https://reviews.llvm.org/D61438 llvm-svn: 360760
* Group forward declarations in one namespace lldb_private {}Fangrui Song2019-05-1544-392/+15
| | | | llvm-svn: 360757
* [CMake] Add error to clarify that lldb requires libcxxStefan Granitz2019-05-152-0/+24
| | | | | | | | | | | | | | | | | | | | | Summary: This adds a specific error message to clarify that lldb requires libcxx when built together with clang on macOS. In addition, the lldb building docs are also updated. Fixes https://bugs.llvm.org/show_bug.cgi?id=41866 Reviewers: sgraenitz, JDevlieghere, EricWF Reviewed By: sgraenitz Subscribers: mgorny, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D61877 llvm-svn: 360756
* DWARF: s/CompileUnit/Unit/ in DWARFFormValuePavel Labath2019-05-155-59/+51
| | | | | | | | The class has been converted to use DWARFUnit, but a number of uses of the words compile unit remained. This removes all such references Get/SetCompileUnit becomes Get/SetUnit, and m_cu becomes m_unit. llvm-svn: 360754
* Replace assert with static_assert here applicable.Jonas Devlieghere2019-05-155-11/+12
| | | | | | | Replaces assert() with static_assert() if the condition is can be evaluated at compile time. llvm-svn: 360753
* Mark private unimplemented functions as deletedJonas Devlieghere2019-05-1515-33/+27
| | | | | | | Applies modernize-use-equals-delete to the LLDB code base and removes the now redundant comments. llvm-svn: 360751
* [Docs] Document lldb-dotestJonas Devlieghere2019-05-151-13/+35
| | | | | | Document the lldb-dotest binary. llvm-svn: 360748
* Revert "build: use the correct variable"Saleem Abdulrasool2019-05-151-1/+1
| | | | | | | | This reverts commit b5a8abd57f23e2f621d5ceb0f64f1bb8f9579c3f. This should not be needed as the lldb-server tool will add `LLDB_CAN_USE_LLDB_SERVER` which will never be set to true on Windows. llvm-svn: 360745
* [lldb] [lit] Fix whitespace in matches for remaining AVX512 testsMichal Gorny2019-05-153-40/+40
| | | | llvm-svn: 360744
* [Target] Generalize some behavior in ThreadAlex Langford2019-05-153-16/+27
| | | | | | | | | | Summary: I don't think there's a good reason for this behavior to be considered ObjC-specific. We can generalize this. Differential Revision: https://reviews.llvm.org/D61776 llvm-svn: 360741
* Make SBDebugger.RunCommandInterpreter callable from Python.Jim Ingham2019-05-152-0/+64
| | | | | | | | Authored by: Lukas Boger Differential Revision: https://reviews.llvm.org/D61602 llvm-svn: 360730
* [lit/Register] Fix matching of the output.Davide Italiano2019-05-141-32/+32
| | | | llvm-svn: 360725
* build: use the correct variableSaleem Abdulrasool2019-05-141-1/+1
| | | | | | | Adjust the variable that controls whether the unit tests use `lldb-server`. This should repair the default build on Windows. llvm-svn: 360695
* lldb-server: rename `llgs::terminate` (NFC)Saleem Abdulrasool2019-05-141-3/+3
| | | | | | | | | | | | | | | | | | | | `terminate` overlaps with a C function on Windows: ``` D:\a\1\s\lldb\tools\lldb-server\lldb-server.cpp(45,13): warning: 'terminate' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport] static void terminate() { g_debugger_lifetime->Terminate(); } ^ C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_terminate.h(29,48): note: previous declaration is here _ACRTIMP __declspec(noreturn) void __cdecl terminate() throw(); ^ D:\a\1\s\lldb\tools\lldb-server\lldb-server.cpp(45,61): warning: function declared 'noreturn' should not return [-Winvalid-noreturn] static void terminate() { g_debugger_lifetime->Terminate(); } ^ ``` Rename the function to `terminate_debugger` to avoid the errant match. llvm-svn: 360693
* Rename MacOS X -> macOS where applicable.Adrian Prantl2019-05-1412-31/+30
| | | | llvm-svn: 360691
* DWARF/NFC: Centralize DIERef conversionsPavel Labath2019-05-143-40/+24
| | | | | | | | | | | | | apple and manual indexing code were creating a DIERef in a bunch of places. Though the code itself is not much, it is also easy to simplify by factoring out the DIERef creation. In HashedNameToDIE I create a conversion operator from DIEInfo to DIERef, and in ManualDWARFIndex I just create the DIERef in a global variable up-front. This also reduces the diff in follow-up patches which change how DIERefs are constructed. llvm-svn: 360669
* TestMinidumpNew.py: Use yaml2obj where possiblePavel Labath2019-05-1410-79/+147
| | | | | | | | | Replace checked-in minidumps with their yaml forms now that yaml2obj supports the ThreadList stream. I delete the test_modules_in_mini_dump test altogether as this functionality is covered more systematically in TestMinidumpUUID.py. llvm-svn: 360655
* typedef enum -> enumFangrui Song2019-05-1448-202/+172
| | | | | | | | Reviewed By: labath Differential Revision: https://reviews.llvm.org/D61883 llvm-svn: 360654
* [CMake] Correctly reinstate LLDB_CAN_USE_LLDB_SERVERPavel Labath2019-05-141-2/+2
| | | | | | | | | | | | | | | | | r360631 introduced a "syntax error" which meant that cmake was still not honoring the value of LLDB_CAN_USE_LLDB_SERVER variable. The correct syntax for seting an internal cache variable is "set(VAR value CACHE INTERNAL)", but the patch omitted the "CACHE" keyword. The "syntax error" is in quotes because without the CACHE keyword this is still valid syntax for setting the value of LLDB_CAN_USE_LLDB_SERVER to "1 INTERNAL". There doesn't seem to be a need for this to be a cache variable so I'm reverting this variable to a plain one, as it was before r360621. This will hopefully fix the windows build. llvm-svn: 360652
* ARMDefines.h: fix -Wimplicit-fallthrough in -DLLVM_ENABLE_ASSERTIONS=OFF buildsFangrui Song2019-05-141-2/+3
| | | | | | | | Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D61844 llvm-svn: 360646
* LLDB website: Change the title back to "The LLDB Debugger"Adrian Prantl2019-05-142-4/+9
| | | | | | This is what the old homepage also used. llvm-svn: 360641
* [Docs] Differentiate between public and private APIJonas Devlieghere2019-05-141-2/+3
| | | | | | | On the homepage we should have a clear distinction between the public and private C++ APIs. llvm-svn: 360638
* [Docs] Fix code formattign in variable.rstJonas Devlieghere2019-05-131-0/+1
| | | | | | Fixes missing newline between :: and the actual code. llvm-svn: 360632
* [CMake] Reinstate LLDB_CAN_USE_LLDB_SERVERJonas Devlieghere2019-05-132-3/+8
| | | | | | | | | | We cannot manipulate the LLDB_TOOL_LLDB_SERVER_BUILD directly from LLDBConfig.cmake because this would set the variable before the option is defined in AddLLVM.cmake. Instead, we need to use the LLDB_CAN_USE_LLDB_SERVER variable to conditionally add the lldb-server subdirectory. This should ensure the variable doesn't get cleared. llvm-svn: 360631
* Disable TestEnvironment on WindowsJonas Devlieghere2019-05-131-0/+2
| | | | | | | | | | | | | | The input source file seems to be triggering an error in the Visual Studio headers. > xstddef:338:2: error: ''auto' return without trailing return type; > deduced return types are a C++14 extension I tried converting the test to use the %build stuff Zachary added, but that seems to be missing some Darwin support. Disabling the test on Windows in the meantime. llvm-svn: 360624
* [CMake] Simplify lldb-server handlingJonas Devlieghere2019-05-133-18/+8
| | | | | | | | | We can piggyback off the existing add_lldb_tool_subdirectory to decide whether or not lldb-server should be built. Differential revision: https://reviews.llvm.org/D61872 llvm-svn: 360621
* Merge target and launch info environmentsJonas Devlieghere2019-05-133-1/+18
| | | | | | | | | | | Before this change we were overriding the launch info environment with the target environment. This meant that the environment variables passed to `process launch --environment <>` were lost. Instead of replacing the environment, we should merge them. Differential revision: https://reviews.llvm.org/D61864 llvm-svn: 360612
* Remove commented-out codeJonas Devlieghere2019-05-131-43/+0
| | | | llvm-svn: 360611
* [DataFormatters] FindLibCppStdFunctionCallableInfo() currently uses ↵Shafik Yaghmour2019-05-131-2/+2
| | | | | | | | FindFunctions() in order to find a lambdas operator()() but using FindSymbolsMatchingRegExAndType() is cheaper and if we also anchor the regex using ^ this adds some additional performance gains. Differential Revision: https://reviews.llvm.org/D61759 llvm-svn: 360599
* [NativePDB] Fix tests after r360569Aleksandr Urakov2019-05-131-6/+0
| | | | llvm-svn: 360587
* DWARF/DIERef: remove non-const operator<Pavel Labath2019-05-131-2/+0
| | | | | | It serves no purpose as one can always invoke the const version instead. llvm-svn: 360583
* Add REQUIRES: windows to NativePDB/stack_unwinding01.cppPavel Labath2019-05-131-2/+2
| | | | | | | The test runs the compiled executable. As such, it can only work on windows hosts. llvm-svn: 360576
* Breakpad: Generate unwind plans from STACK CFI recordsPavel Labath2019-05-135-2/+298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch implements the GetUnwindPlan interface (added in the previous patch) for SymbolFileBreakpad, and uses it to generate unwind plans from STACK CFI records in breakpad files. We first perform a light-weight parse of the breakpad in order to build up a map of regions covered by the unwind info so that we can later jump to the right record when we need to unwind a specific function. The actual parsing is relatively straight-forward, as the STACK CFI records are just another (text) form of the eh_frame unwind instructions, and the same goes for lldb's UnwindPlans. The newly-introduced PostfixExpression API is used to convert the breakpad postfix expressions into DWARF. The generated dwarf expressions are stored in a BumpPtrAllocator, as the UnwindPlan does not take ownership of the expression data it references (usually this is static data in an object file, so special ownership is needed). At this moment the generated unwind plans aren't used in the actual unwind machinery (only in the image show-unwind command), but that is coming in a separate patch. Reviewers: amccarth, clayborg, markmentovai Subscribers: aprantl, jasonmolenda, lldb-commits Differential Revision: https://reviews.llvm.org/D61733 llvm-svn: 360574
* Fix flakiness in lldb lit testStefan Granitz2019-05-131-1/+0
| | | | | | | | Messages "breakpoint locations added" and "process stopped" may come out of order. Differential Revision: https://reviews.llvm.org/D61611#anchor-1499662 llvm-svn: 360571
* [NativePDB] Support member function types in PdbAstBuilderAleksandr Urakov2019-05-134-0/+75
| | | | | | | | | | | | | | | | | Summary: This patch implements missing case in PdbAstBuilder::CreateType for LF_MFUNCTION. This is necessary, for example, in stack unwinding of struct methods. Reviewers: amccarth, aleksandr.urakov Reviewed By: amccarth Subscribers: abidh, teemperor, lldb-commits, leonid.mashinskiy Differential Revision: https://reviews.llvm.org/D61128 llvm-svn: 360569
* minidump: Use yaml instead of checked-in binaries for ThreadList testsPavel Labath2019-05-135-30/+41
| | | | | | yaml2obj now supports the ThreadList stream. llvm-svn: 360568
* [DWARF] Use sequential integers for the IDs of the SymbolFileDWOsPavel Labath2019-05-132-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Instead of using the offset of the contained compile unit, we use it's ID. The goal of this change is two-fold: - free up space in the user_id_t representation to enable storing the debug-info-carrying section (debug_types/debug_info) without decreasing the amount of debug info we can address (as would be the case with D61503). - be a step towards supporting DWO files containing more than one unit (important for debug_types+dwo, but can also happen with regular dwo+lto). For this part to fully work we'd still need to add a way to lookup the SymbolFileDWO without going through GetCompileUnitAtIndex, but making sure things don't accidentally work because the SymbolFile ID is the same as compile unit offset is a step towards that. Reviewers: JDevlieghere, clayborg, aprantl Subscribers: mehdi_amini, dexonsmith, tberghammer, jankratochvil, lldb-commits Differential Revision: https://reviews.llvm.org/D61783 llvm-svn: 360565
* @skipIfLinux flaky lldb-mi testsPavel Labath2019-05-134-1/+5
| | | | llvm-svn: 360564
* Remove declaratons of deleted structs/classesFangrui Song2019-05-131-11/+0
| | | | llvm-svn: 360562
* [CMake] Add lli to LLDB_TEST_DEPSFangrui Song2019-05-131-0/+1
| | | | | | | lli is used by lit/Breakpoint/jitbp_elf.test I had a test failure when running check-lldb-lit because my lli was stale. llvm-svn: 360557
* Fix file names in file headers. NFCFangrui Song2019-05-1341-43/+43
| | | | llvm-svn: 360554
OpenPOWER on IntegriCloud