aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-13Disable lldb-mi tests on Windows.studio-1.4studio-master-devstudio-1.4-devZachary Turner
Most were already XFAIL'ed, but the reason for the XFAIL is that we don't have a suitable pexpect implementation on Windows. This isn't going to change unintentionally, so there is no reason to XFAIL them as opposed to just skip them. llvm.org/pr22274 tracks finding a suitable pexpect module for Windows, which should fix many of these issues. llvm.org/pr24452 tracks the larger issue of making the entire lldb-mi test suite work on Windows, of which finding a pexpect module is just one component. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244951 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13XFAIL Watchpoint tests on Windows.Zachary Turner
https://llvm.org/pr24446 tracks getting these tests re-enabled. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244950 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Remove more uses of raw_svector_ostream::flush() call following r244928.Yaron Keren
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244936 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Remove raw_svector_ostream::flush() call following r244928.Yaron Keren
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244935 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Removing redundant check from r244875Ravitheja Addepally
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244886 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Add missing include to RegisterInfoInterface.hTamas Berghammer
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244881 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Fix Linux build after r244875Tamas Berghammer
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244877 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Set orig_eax to -1 for Linux x86 platformsRavitheja Addepally
Summary: For Linux x86 based environments the orig_eax/orig_rax register should be set to -1 to prevent the instruction pointer to be decremented, which was the cause for the SIGILL exception. Fix for Bug 23659 Reviewers: zturner, ashok.thirumurthi, mikesart, jingham, clayborg Subscribers: clayborg, labath Differential Revision: http://reviews.llvm.org/D11411 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244875 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13[LLDB][MIPS] Use qfThreadID if qC packet is not supported by targetJaydeep Patil
SUMMARY: The patch uses qfThreadID to get the thread IDs if qC packet is not supported by target. Reviewers: jingham, clayborg Subscribers: nitesh.jain, mohit.bhakkad, sagar, bhushan and lldb-commits Differential Revision: http://reviews.llvm.org/D11519 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244866 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13[LLDB][MIPS] Support standard GDB remote stop reply packet for watchpointJaydeep Patil
SUMMARY: The patch supports TAAwatch:addr packet. The patch also sets m_watchpoints_trigger_after_instruction to eLazyBoolNo when qHostInfo or qWatchpointSupportInfo is not supported by the target. Reviewers: jingham, clayborg Subscribers: nitesh.jain, mohit.bhakkad, sagar, bhushan and lldb-commits Differential Revision: http://reviews.llvm.org/D11747 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244865 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13[LLDB][MIPS] Handle false positives for MIPS hardware watchpointsJaydeep Patil
SUMMARY: Last 3bits of the watchpoint address are masked by the kernel. For example, n is at 0x120010d00 and m is 0x120010d04. When a watchpoint is set at m, then watch exception is generated even when n is read/written. To handle this case, instruction at PC is emulated to find the base address of the load/store instruction. This address is then appended to the description of the stop-info packet. Client then reads this information to check whether the user has set a watchpoint on this address. Reviewers: jingham, clayborg Subscribers: nitesh.jain, mohit.bhakkad, sagar, bhushan and lldb-commits Differential Revision: http://reviews.llvm.org/D11672 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244864 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Add missing newline at EOF.Bruce Mitchener
This fixes a warning on the Mac OS X build. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244863 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Remove DNBConfig.hBruce Mitchener
Summary: This was no longer needed and hasn't been needed since r143244 in 2011. This removes everything associated with generating or using it. Reviewers: clayborg, jasonmolenda Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11971 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244850 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-13Convert GetNumTemplateArguments() and GetTemplateArgument() to be instance ↵Enrico Granata
functions on the CompilerType and the TypeSystem git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244846 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Fix process_events.py to auto continue the process if we attached so the ↵Greg Clayton
process doesn't just sit there suspended. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244801 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Make dosep.py PEP8 compliant. NFC.Chaoren Lin
Reviewers: zturner, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11846 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244784 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Refactor dosep to use list comprehension. NFC.Chaoren Lin
Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11910 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244783 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Don't print number of failures and percentage if no tests ran.Chaoren Lin
Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11909 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244782 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Make dosep output status by overwriting the same line.Chaoren Lin
Summary: Update to D11816. Reviewers: zturner Subscribers: zturner, lldb-commits Differential Revision: http://reviews.llvm.org/D11843 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244781 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Remove printf most likely left from some debugging sectionTamas Berghammer
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244759 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Fix AArch64 watchpoint handlers in NativeRegisterContextLinux_arm64Omair Javaid
http://reviews.llvm.org/D11899 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244750 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Fix read only watchpoints on x86_64Tamas Berghammer
On x86/x86_64 read only watchpoints aren't supported. Fall back to read/write watchpoints in that case. Note: Logic should be added to ignore the watchpoint hit when occurred because of a write. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244742 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Fix LLGS to enable read type watchpointsOmair Javaid
http://reviews.llvm.org/D11902 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244741 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Improve check for ASAN callbacksTamas Berghammer
The ASAN callbacks are public symbols so we can search for them with reading only the symbol table (not the debug info). Whit this change the attach time for big executables with debug symbols decreased by a factor of ~4. Differential revision: http://reviews.llvm.org/D11384 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244739 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Download symbol file for .oat files on androidTamas Berghammer
On android .oat files (compiled java code) don't have symbol information but on SDK 23+ it can be generated by the oatdump tool (based on the dex information). This CL adds logic to download this information and store it in the module cache. Differential revision: http://reviews.llvm.org/D11936 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244738 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Fetch SDK version from PlatformAndroidTamas Berghammer
The SDK version implies the features supported by a given android device. This version number will be used in future changes to execute the right command on the device. Differential revision: http://reviews.llvm.org/D11935 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244737 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Have debugserver send the OS version string plusJason Molenda
major, minor, and patchlevel in the qHostInfo reply. Document that qHostInfo may report major/minor/patch separately / in addition to the version: combination. <rdar://problem/22125465> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244716 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-12Export snprintf to avoid linking error with liblldb on Windows.Chaoren Lin
Reviewers: zturner, ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11967 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244710 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-11ClangASTType is now CompilerType.Greg Clayton
This is more preparation for multiple different kinds of types from different compilers (clang, Pascal, Go, RenderScript, Swift, etc). git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244689 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-11Fix a infinite loop when killing a process that is in the middle of loading ↵Greg Clayton
shared libraries. The issue was we were sending a "qSymbol::" packet and it we were already disconnected were weren't exiting the while loop if we didn't successfully send the qSymbol packet. <rdar://problem/22098746> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244683 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-11Added missing files from checking regarding:Greg Clayton
http://reviews.llvm.org/D8712 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244681 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-11First step in getting LLDB ready to support multiple different type systems.Greg Clayton
This is the work done by Ryan Brown from http://reviews.llvm.org/D8712 that makes a TypeSystem class and abstracts types to be able to use a type system. All tests pass on MacOSX and passed on linux the last time this was submitted. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244679 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-11Don't crash if the file we want to touch doesn't exist.Greg Clayton
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244663 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-11Add size field to library load event (MI)Ilia K
Summary: (This revision supersedes the abandon: http://reviews.llvm.org/D9716) Size field is used to let the debugger attribute an address to a specific library when symbols are not available. For example: OpenGLESApp4.app!Cube_draw() Line 74 C OpenGLESApp4.app!-[GameViewController glkView:drawInRect:](GameViewController * self, SEL _cmd, GLKView * view, CGRect rect) Line 89 C++ GLKit!<redacted> QuartzCore!<redacted> QuartzCore!<redacted> QuartzCore!<redacted> QuartzCore!<redacted> QuartzCore!<redacted> UIKit!<redacted> UIKit!<redacted> UIKit!<redacted> UIKit!<redacted> FrontBoardServices!<redacted> CoreFoundation!<redacted> Patch from paulmay@microsoft.com Reviewers: ChuckR, abidh, ki.stfu Subscribers: greggm, lldb-commits Differential Revision: http://reviews.llvm.org/D11574 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244573 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-10Revert r244308 since it's introducing test regressions on Linux:Oleksiy Vyalov
- TestLldbGdbServer.py both clang & gcc, i386 and x86_64 - TestConstVariables.py gcc, i386 and x86_64 - 112 failures clang, i386 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244514 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-10Allow dosep.py to print dotest.py output on success.Zachary Turner
Previously all test output was reported by each individual instance of dotest.py. After a recent patch, dosep gets dotest outptu via a pipe, and selectively decides which output to print. This breaks certain scripts which rely on having full output of each dotest instance to do various parsing and/or log-scraping. While we make no promises about the format of dotest output, it's easy to restore this to the old behavior for now, although it is behind a flag. To re-enable full output, run dosep.py with the -s option. Differential Revision: http://reviews.llvm.org/D11816 Reviewed By: Chaoren Lin git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244469 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-10Feedback from Jim: Change the "optimized code" warning to be entirelyJason Molenda
contained within Process so that we won't be duplicating the warning message if other parts of the code want to issue the message. Change Process::PrintWarning to be a protected method - the public method will be the PrintWarningOptimization et al. Also, Have Thread::FunctionOptimizationWarning shortcut out if the warnings have been disabled so that we don't (potentially) compute parts of the SymbolContext unnecessarily. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244436 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-09Fix for build errors on arm-linux-gnueabi-gccOmair Javaid
http://reviews.llvm.org/D11256 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244419 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-07Use lowercase for local cmake variables.Chaoren Lin
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244345 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-07Hide cmake variables related to static linking Android lldb-server.Chaoren Lin
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244344 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-07Update to D11825.Chaoren Lin
Summary: Adding `-latomic` to `ANDROID_LINKER_FLAGS` doesn't actually work. Adding `atomic` to `LLDB_SYSTEM_LIBS` does. Related: D11831. Reviewers: Andrzej, ovyalov Subscribers: tberghammer, danalbert, srhines, lldb-commits Differential Revision: http://reviews.llvm.org/D11840 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244343 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-07[LLDB][MIPS] Fix offsets of all register sets and add MSA regset and FRE=1 ↵Sagar Thakur
mode support This change : - Fixes offsets of all register sets for Mips. - Adds MSA register set and FRE=1 mode support for FP register set. - Separates lldb register numbers and register infos of freebsd/mips64 from linux/mips64. - Re-orders the register numbers of all kinds for mips to be consistent with freebsd order of register numbers. - Eliminates ENABLE_128_BIT_SUPPORT and union ValueData from Scalar.cpp and uses llvm::APInt and llvm::APFloat for all integer and floating point types. Reviewers : emaste, jaydeep, clayborg Subscribers : emaste, mohit.bhakkad, nitesh.jain, bhushan Differential : http://reviews.llvm.org/D10919 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244308 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-06Add -latomic to Android mips build to avoid http://b.android.com/182094.Chaoren Lin
Reviewers: ovyalov Subscribers: tberghammer, danalbert, srhines, lldb-commits Differential Revision: http://reviews.llvm.org/D11825 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244298 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-06Change the warning message about optimization to be printed onceJason Molenda
per Module instead of once per CompileUnit, and print the module name. A module may have a mix of compile units built with optimization and compile units built without optimization -- the warning won't be printed until the user selects a stack frame of a function that was built with optimization. And as before, it will only be printed once per module per debug session. <rdar://problem/19281172> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244281 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-06Update lldb's ExternalASTSources to match Clang r244161.Richard Smith
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244194 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-06Second part of indicating when the user is stopped in optimized code.Jason Molenda
The first part was in r243508 -- the extent of the UI changes in that patchset was to add "[opt]" to the frame-format when a stack frame was built with optimized code. In this change, when a stack frame built with optimization is selected, a message will be printed to the async output channel -- opt1.c was compiled with optimization - stepping may behave oddly; variables may not be available. The warning will be only be printed once per source file in a debug session. These warnings may be disabled by settings set target.process.optimization-warnings false Internally, a new Process::PrintWarning() method has been added for warnings that we want to print only once to the user. It takes a type of warning (currently only eWarningsOptimization) and an object pointer (CompileUnit*) - the warning will only be printed once for a given object pointer value. This is a bit of a prototype of this change - I think we will be tweaking it more in the future. But I wanted to land this and see how it goes. Advanced users will find these warnings unnecessary noise and will quickly disable them - but anyone who maintains a debugger knows that debugging optimized code, without realizing it, is a constant source of confusion and frustation for more typical debugger users. I imagine there will be more of these "warn once per whatever" style warnings that we will want to add in the future and we'll need to come up with a better way for enabling/disabling them. But I'm not srue what form that warning settings should take and I didn't want to code up something that we regret later, so for now I just added another process setting for this one warning. <rdar://problem/19281172> git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244190 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-05Static Android build doesn't need shared libs.Chaoren Lin
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244073 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-05Allow sysroot and python to be specified for Android build.Chaoren Lin
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244072 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-05Flush stderr on dosep status update for Windows.Chaoren Lin
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244069 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-05Bug 24332 - Fix the build of lldb under GNU/Linux when using autotoolsSylvestre Ledru
Reviewers: loladiro, jingham, emaste, zturner, brucem Subscribers: tberghammer, danalbert, srhines, zturner, lldb-commits Differential Revision: http://reviews.llvm.org/D11717 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244039 91177308-0d34-0410-b5e6-96231b3b80d8