summaryrefslogtreecommitdiffstats
path: root/lldb
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix another build issue with shared libraries on LinuxChris Bieneman2017-02-102-2/+2
| | | | | | In r294767, I added these dependencies in the wrong place. llvm-svn: 294768
* Fix another build issue with shared libraries on LinuxChris Bieneman2017-02-101-0/+2
| | | | llvm-svn: 294767
* Fix build issue with shared libraries reported via emailChris Bieneman2017-02-101-0/+1
| | | | llvm-svn: 294763
* Really fix windows buildPavel Labath2017-02-101-2/+2
| | | | | | this time I have actually tried that it compiles on windows. llvm-svn: 294744
* Fix darwin and windows builds broken by r294736Pavel Labath2017-02-104-11/+14
| | | | | | Update the platform-specific log classes to match the new interface. llvm-svn: 294743
* UriParser cleanupPavel Labath2017-02-109-48/+28
| | | | | | | - move the header file to the include folder - enclose the class in the proper namespace llvm-svn: 294741
* Switch TestPacketSpeedJSON to use the llvm chrono formatterPavel Labath2017-02-102-25/+19
| | | | llvm-svn: 294739
* Add a format_provider for the Timeout classPavel Labath2017-02-107-69/+56
| | | | | | | | | | and use it in the appropriate log statements. Formatting of chrono types in log messages was very clunky. This should make it much nicer to use and give better output. For details of the formatting options see the chrono formatter in llvm. llvm-svn: 294738
* Improve asserts in TestWatchpointIgnoreCountPavel Labath2017-02-101-9/+7
| | | | | | | | This test is flaky on the windows->android bot. Change assertTrue to assertEqual in the hope better error messages will direct us to the problem. llvm-svn: 294737
* Convert Log class to llvm streamsPavel Labath2017-02-1018-119/+139
| | | | | | | | | | | | | | | | | | | | | | | | Summary: This converts LLDB's logging to use llvm streams instead of lldb_private::Stream and friends. The changes are mostly straight-forward and amount to s/lldb_private::Stream/llvm::raw_ostream. The part worth calling out is the rewrite of the StreamCallback class. Previously this class contained a per-thread buffer of data written. I assume this had something to do with it trying to make sure each log line is delivered as a single event, instead of multiple (possibly interleaved) events. However, this is no longer relevant as the Log class already writes things to a temporary buffer and then delivers the message as a single "write", so I have just removed the code in question. Reviewers: zturner, clayborg Subscribers: emaste, lldb-commits, mgorny Differential Revision: https://reviews.llvm.org/D29615 llvm-svn: 294736
* Make sure we only load the OS plug-in once.Greg Clayton2017-02-091-3/+7
| | | | | | <rdar://problem/27580297> llvm-svn: 294611
* Fix build bots.Greg Clayton2017-02-092-4/+3
| | | | llvm-svn: 294603
* Fixed an issue where AllocatedBlock::ReserveRange does a linear search ↵Greg Clayton2017-02-093-123/+124
| | | | | | | | | | | | through reserved ranges. After many expressions are evaluated we were spending time looking for open blocks on memory in the one or more AllocatedBlock objects and it would slow down expression evaluation. I implemented a fixed size blocks implementation that maintains a sorted free list to fix the issue. <rdar://problem/17962974> llvm-svn: 294600
* Fixed documentation bug found by Ramana who sent a patch to the lldb-dev list.Greg Clayton2017-02-091-1/+1
| | | | llvm-svn: 294597
* Revert r294580 , it didn't fix the shared buildIsmail Donmez2017-02-091-1/+0
| | | | llvm-svn: 294583
* Fix shared library buildIsmail Donmez2017-02-091-0/+1
| | | | llvm-svn: 294580
* [cmake] add missing dependency lldbCommands->lldbBasePavel Labath2017-02-091-0/+1
| | | | | | | | | | CommandObjectVersion.cpp calls lldb_private::GetVersion (present in lldbBase). This should fix the unittest link on windows. I am not sure why is this not present on other platforms -- my guess is that there lldbBase is included in the link through some other dependency chain. llvm-svn: 294549
* [CMake] Add dependency on Mips target if it is availableChris Bieneman2017-02-082-0/+10
| | | | | | | | | | The Mips plugins conditionally link the Mips backend, so we need to conditionally add the target as a dependency. This resolves a bot failure from r294515. http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-buildserver/builds/4606/steps/build%20android/logs/stdio llvm-svn: 294521
* [CMake] Final dependency cleanup patch!Chris Bieneman2017-02-089-335/+38
| | | | | | | | | | | | | | | | | Summary: This patch removes the over-specified dependencies from LLDBDependencies and instead relies on the dependencies as expressed in each library and tool. This also removes the library looping in favor of allowing CMake to do its thing. I've tested this patch on Darwin, and found no issues, but since linker semantics vary by system I'll also work on testing it on other platforms too. Help testing would be greatly appreciated. Reviewers: labath, zturner Subscribers: danalbert, srhines, mgorny, jgosnell, lldb-commits Differential Revision: https://reviews.llvm.org/D29352 llvm-svn: 294515
* [LLDB][MIPS] Fix TestMiExec and TestMiData failuresNitesh Jain2017-02-083-3/+26
| | | | | Subscribers: jaydeep, bhushan, lldb-commits, slthakur llvm-svn: 294418
* [LLDB][MIPS] Fix TestMiniDumpNewNitesh Jain2017-02-081-0/+8
| | | | | | | | | | Reviewers: labath, clayborg Subscribers: jaydeep, bhushan, lldb-commits, slthakur Differential Revision: https://reviews.llvm.org/D29215 llvm-svn: 294415
* [CMake] Add explicit dependencies for ObjectFileELF testsChris Bieneman2017-02-071-0/+4
| | | | llvm-svn: 294372
* Synchronize PlatformFreeBSD with LinuxEd Maste2017-02-072-278/+91
| | | | | | | | | | Inspired by r294145 for NetBSD, this reduces diffs between the FreeBSD and Linux/NetBSD Platform implementations. Further diff reduction will occur once FreeBSD switches to using the remote process plugin. Differential Revision: https://reviews.llvm.org/D29667 llvm-svn: 294340
* Remove verbose category in the kdp channelPavel Labath2017-02-064-14/+7
| | | | llvm-svn: 294244
* Switch PlatformLinux to LLDB_LOGPavel Labath2017-02-061-83/+21
| | | | llvm-svn: 294243
* Remove the verbose category in the gdb-remote channelPavel Labath2017-02-065-27/+13
| | | | | | replace by LLDB_LOGV llvm-svn: 294224
* Remove the verbose category in the posix channelPavel Labath2017-02-065-29/+15
| | | | | | replace by LLDB_LOGV llvm-svn: 294223
* Fix darwin build (error.PutToLog fallout)Pavel Labath2017-02-061-18/+6
| | | | llvm-svn: 294222
* Fix darwin build (llvm::once_flag fallout)Pavel Labath2017-02-062-2/+3
| | | | llvm-svn: 294221
* Remove the verbose category in the dwarf channelPavel Labath2017-02-063-9/+3
| | | | llvm-svn: 294219
* Really fix build on non-windows platforms :)Pavel Labath2017-02-061-1/+1
| | | | llvm-svn: 294215
* Try to fix build on non-Windows platforms.Zachary Turner2017-02-061-5/+6
| | | | llvm-svn: 294213
* Fix missing include in NativeProcessLinuxPavel Labath2017-02-061-7/+4
| | | | llvm-svn: 294211
* Get rid of Error::PutToLog().Zachary Turner2017-02-065-168/+57
| | | | | | | | | | | | | Instead just rely on LLDB_LOG(). This is part of an effort to sort out dependency hell in LLDB. Error is in Utility, but Log is in Core. Core can depend on Utility, but not vice versa. So this patch moves the knowledge about how to log Errors from the Error class to the Log file. Differential Revision: https://reviews.llvm.org/D29514 llvm-svn: 294210
* Fix Xcode project.Greg Clayton2017-02-061-38/+38
| | | | llvm-svn: 294206
* Switch std::call_once to llvm::call_onceKamil Rytarowski2017-02-0636-111/+157
| | | | | | | | | | | | | | | | | | | | | Summary: The std::call_once implementation in libstdc++ has problems on few systems: NetBSD, OpenBSD and Linux PPC. LLVM ships with a homegrown implementation llvm::call_once to help on these platforms. This change is required in the NetBSD LLDB port. std::call_once with libstdc++ results with crashing the debugger. Sponsored by <The NetBSD Foundation> Reviewers: labath, joerg, emaste, mehdi_amini, clayborg Reviewed By: labath, clayborg Subscribers: #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D29288 llvm-svn: 294202
* Synchronize PlatformNetBSD with LinuxKamil Rytarowski2017-02-052-310/+298
| | | | | | | | | | | | | | | | | | | | | Summary: Update the code to the new world code. These changes are needed for remote process plugin. Sponsored by <The NetBSD Foundation> Reviewers: emaste, clayborg, joerg, labath Reviewed By: clayborg, labath Subscribers: #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D29266 llvm-svn: 294145
* Clean up PlatformLinux codePavel Labath2017-02-052-70/+1
| | | | | | | | don't create a platform.linux setting category, as it contains no actual settings, and I don't forsee adding any soon. Also remove some unused includes while I'm in there. llvm-svn: 294114
* Remove LIBLLDB_LOG_VERBOSE categoryPavel Labath2017-02-0518-226/+142
| | | | | | | | | | | | | | | | | | | | | Summary: Per discussion in D28616, having two ways two request logging (log enable lldb XXX verbose && log enable -v lldb XXX) is confusing. This removes the first option and standardizes all code to use the second one. I've added a LLDB_LOGV macro as a shorthand for if(log && log->GetVerbose()) and switched most of the affected log statements to use that (I've only left a couple of cases that were doing complex computations in an if(log) block). Reviewers: jingham, zturner Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D29510 llvm-svn: 294113
* Install six.py conditionallyKamil Rytarowski2017-02-045-5/+20
| | | | | | | | | | | | | | | | | | | | | | | Summary: The current version of LLDB installs six.py into global python library directory. This approach produces conflicts downstream with distribution's py-six copy. Introduce new configure option LLDB_USE_SYSTEM_SIX (disabled by default). Once specified as TRUE, six.py won't be installed to Python's directory. Add new option in finishSwigWrapperClasses.py, namely --useSystemSix. Sponsored by <The NetBSD Foundation> Reviewers: mgorny, emaste, clayborg, joerg, labath Reviewed By: labath Subscribers: #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D29405 llvm-svn: 294071
* Add a missing break statementPavel Labath2017-02-031-0/+1
| | | | llvm-svn: 294036
* Fix incorrect logging in ThreadPlan::ShouldReportStopPavel Labath2017-02-031-5/+2
| | | | | | | it used printf with formatv style specifications. Also, switch to LLDB_LOG. llvm-svn: 294024
* Use LLDB_LOG in NativeRegisterContextLinux*** filesPavel Labath2017-02-034-182/+79
| | | | llvm-svn: 294023
* Push down more common code into PlatformPOSIXPavel Labath2017-02-0312-226/+51
| | | | | | | | | | | | | | | | | | | | Summary: - GetFileWithUUID: All platforms except PlatformDarwin had this. However, I see no reason why this code would not apply there as well. - GetProcessInfo, FindProcesses: The implementation was the same in all classes. - GetFullNameForDylib: This code should apply to all non-darwin platforms. I've kept the PlatformDarwin override as the situation is different there. Reviewers: clayborg, krytarowski, emaste Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D29496 llvm-svn: 294019
* Fix mac build breakage due to StringStream movePavel Labath2017-02-021-1/+1
| | | | llvm-svn: 293948
* Move classes from Core -> Utility.Zachary Turner2017-02-02512-691/+698
| | | | | | | | | | | | | | | | | | | | | | | This moves the following classes from Core -> Utility. ConstString Error RegularExpression Stream StreamString The goal here is to get lldbUtility into a state where it has no dependendencies except on itself and LLVM, so it can be the starting point at which to start untangling LLDB's dependencies. These are all low level and very widely used classes, and previously lldbUtility had dependencies up to lldbCore in order to use these classes. So moving then down to lldbUtility makes sense from both the short term and long term perspective in solving this problem. Differential Revision: https://reviews.llvm.org/D29427 llvm-svn: 293941
* Fix windows build after r293821Pavel Labath2017-02-021-1/+1
| | | | | | | | We started passing the list of libraries to link to the add_lldb_unittest macro, but that macro wasn't actually doing anything with them. Fix that. llvm-svn: 293913
* Unify PlatformPOSIX::ResolveExecutablePavel Labath2017-02-0212-563/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: various platforms very using nearly identical code for this method. As far as I can tell there was nothing platform-specific about the differences, but rather it looked like it was caused by tiny tweaks being made to individual copies without affecting the overall functionality. I have taken the superset of all these tweaks and put it into one method in the base class (incidentaly, nobody was using the base class implementation of the method, as all classes were overriding it). From the darwin class I took the slightly improved error reporting (checking whether the file is readable) and the ResolveExecutableInBundle call (which has no effect elsewhere as the function is already a no-op on non-darwin platforms). From the linux class I took the set-the-triple-vendor-to-host-if-unspecified tweak (present in PlatformKalimba as well). PlatformWindows has an identical copy as well. We could resolve that by pushing this code further down into Platform class, that that would require pushing the m_remote_platform_sp member as well, which seems like a bad design choice. Reviewers: clayborg, emaste, krytarowski Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D29406 llvm-svn: 293910
* Fix multi-process-driver.cpp build on NetBSDKamil Rytarowski2017-02-021-1/+1
| | | | | | | | | | | | | | | | | | | Summary: Include <string.h> for strcmp(3) and memset(3). Sponsored by <The NetBSD Foundation> Reviewers: joerg, clayborg, emaste, labath Reviewed By: clayborg Subscribers: #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D29403 llvm-svn: 293895
* Add logging to SBThread::GetInfoItemByPathAsString toJason Molenda2017-02-022-8/+10
| | | | | | | | | | | | print the path being requested. Change the GetInfoItemByPathAsString docuemtnation in the .i file to use docstring instead of autodoc so the function signature is included in the python help. <rdar://problem/29999567> llvm-svn: 293858
OpenPOWER on IntegriCloud