summaryrefslogtreecommitdiffstats
path: root/lldb
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for "source info" and use it to fix MI's -symbol-list-lines.Dawn Perchik2016-01-056-71/+648
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support the command 'source info' as follows: (lldb) help source info Display source line information (as specified) based on the current executable's debug info. Syntax: source info <cmd-options> Command Options Usage: source info [-c <count>] [-s <shlib-name>] [-f <filename>] [-l <linenum>] [-e <linenum>] source info [-c <count>] [-s <shlib-name>] [-n <symbol>] source info [-c <count>] [-a <address-expression>] -a <address-expression> ( --address <address-expression> ) Lookup the address and display the source information for the corresponding file and line. -c <count> ( --count <count> ) The number of line entries to display. -e <linenum> ( --end-line <linenum> ) The line number at which to stop displaying lines. -f <filename> ( --file <filename> ) The file from which to display source. -l <linenum> ( --line <linenum> ) The line number at which to start the displaying lines. -n <symbol> ( --name <symbol> ) The name of a function whose source to display. -s <shlib-name> ( --shlib <shlib-name> ) Look up the source in the given module or shared library (can be specified more than once). For example: (lldb) source info --file x.h Lines for file x.h in compilation unit x.cpp in `x [0x0000000100000d00-0x0000000100000d10): /Users/dawn/tmp/./x.h:10 [0x0000000100000d10-0x0000000100000d1b): /Users/dawn/tmp/./x.h:10 The new options are used to fix the MI command: -symbol-list-lines <file> which didn't work for header files because it called: target modules dump line-table <file> which only dumps line tables for a compilation unit. The patch also fixes a bug in the error reporting when no files were supplied to the command. Previously you'd get: (lldb) target modules dump line-table error: Syntax: error: no source filenames matched any command arguments Now you get: error: file option must be specified. Reviewed by: clayborg, jingham, ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15593 llvm-svn: 256863
* Add logging to SBProcess::GetRestartedFromEventPavel Labath2016-01-051-1/+8
| | | | llvm-svn: 256853
* Fix a typo in Process.cppPavel Labath2016-01-051-1/+1
| | | | llvm-svn: 256852
* Fix a typo in lldbutil.pyPavel Labath2016-01-051-1/+1
| | | | llvm-svn: 256851
* Fix for undefined behavior while updating PC value on arm-linuxOmair Javaid2016-01-051-1/+18
| | | | | | Differential revision: http://reviews.llvm.org/D15877 llvm-svn: 256847
* Mark a test_lldbmi_gdb_set_target_async_on as flaky on linuxPavel Labath2016-01-051-0/+1
| | | | | | Test fails in about 1% of buildbot runs. Marking as flaky to avoid the noise. llvm-svn: 256835
* [LLDB][MIPS] Make register read/write to set/get the size of register ↵Sagar Thakur2016-01-051-3/+9
| | | | | | | | | | | | | | according to abi. Summary: For O32 abi register size should be 4 bytes. For N32 and N64 abi register size should be 8 bytes. This patch will make register read/write to set/get the size of register according to abi. Reviewers: clayborg, tberghammer Subscribers: lldb-commits, nitesh.jain, mohit.bhakkad, bhushan, jaydeep Differential: http://reviews.llvm.org/D15884 llvm-svn: 256834
* Revert r256769Ewan Crawford2016-01-052-2/+2
| | | | | | | | | Reverts "Use correct format identifiers to print something meaningful." Original format specifiers were correct. Instead use void* casts to remove warnings, since this is what the %p specifier expects. llvm-svn: 256833
* Remove XTIMEOUT from TestEvents on linuxPavel Labath2016-01-051-1/+0
| | | | | | | I'm getting rid of the expected timeouts. I'll XFAIL/skip any tests that show up as failing after this (I haven't seen any when running locally, but maybe the buildbot will disagree). llvm-svn: 256827
* Remove old flaky test rerun logicPavel Labath2016-01-051-23/+3
| | | | | | | | | | | | | | Summary: This removes the old logic for rerunning flaky tests. The new test runners will take care of rerunning failing tests. Reviewers: tfiala Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15855 llvm-svn: 256824
* [FreeBSD] Use a cast sledgehammer to placate newer versions of clang.Davide Italiano2016-01-041-2/+2
| | | | | | Now lldb can build on FreeBSD with -Werror again. llvm-svn: 256771
* Use correct format identifiers to print something meaningful.Davide Italiano2016-01-042-2/+2
| | | | llvm-svn: 256769
* [Commands] Get rid of unused typedefs.Davide Italiano2016-01-041-5/+0
| | | | llvm-svn: 256766
* Remove XTIMEOUT from TestRegisters on linuxPavel Labath2016-01-041-1/+0
| | | | | | | I suspect the test was hanging due to the attach deadlock. This was fixed and the test has passed last 200 buildbot runs. llvm-svn: 256755
* Remove XTIMEOUT from TestThreadStepOut on linuxPavel Labath2016-01-041-1/+0
| | | | | | The whole test is skipped already, so it's not running anyway. llvm-svn: 256752
* Remove XTIMEOUT from TestHelloWorld on linuxPavel Labath2016-01-041-3/+0
| | | | | | | I think it was timing out because of the attach deadlocks, which are now fixed. In any case, it has passed last 200 buildbot runs, so I am enabling it. llvm-svn: 256748
* Remove XTIMEOUT from TestExitDuringStep on linuxPavel Labath2016-01-041-1/+0
| | | | | | | The test has passed last 200 buildbot runs, so it's hopefully working now. I'll watch buildbots for signs of trouble. llvm-svn: 256746
* Remove XTIMEOUT from TestCreateAfterAttach on linuxPavel Labath2016-01-041-1/+0
| | | | | | | I believe the cause for this was the attach lockup fixed in r246756. I will enable this tests and observe the buildbots for signs of problems. llvm-svn: 256744
* Remove TestConnectRemote from XTIMEOUTsPavel Labath2016-01-041-1/+0
| | | | | | The test in question was removed in r249613. llvm-svn: 256741
* Remove unused variableEd Maste2016-01-041-3/+1
| | | | | | Obtained from FreeBSD r292611 llvm-svn: 256724
* Strip trailing whitespaceEd Maste2016-01-044-197/+197
| | | | | | | | (There are changes in the copies of these four files in the FreeBSD base system, and I've changed these ones to reduce gratuitous diffs in future imports.) llvm-svn: 256723
* [ptr-traits] Add an #include to provide the complete type for SectionChandler Carruth2015-12-301-0/+1
| | | | | | | | | | | | which is the pointee in a pointer keyed DenseMap. Pointer keys in a DenseMap have their low bits used by the map implementation and in order to do this safely we need to know the alignment of the pointer. We can only do this if we have the complete type of the pointee. This is part of larger cleanup across LLVM and subprojects to allow us to start enforcing this strictly. llvm-svn: 256616
* Update .clang-format file to support break after return type.Zachary Turner2015-12-281-1/+1
| | | | | | | | This depends on having a recently built version of clang-format installed, as the patch to support this behavior was only just recently added to clang-format. llvm-svn: 256526
* Update LLDB to account for Clang r256463David Majnemer2015-12-271-2/+1
| | | | llvm-svn: 256464
* Include IR/DerivedTypes.h instead of IR/Type.h so to match llvm change r256406.Craig Topper2015-12-251-1/+1
| | | | llvm-svn: 256407
* [LLDB] Fix Read/Write memory to be compatible with both endiansMohit K. Bhakkad2015-12-231-4/+2
| | | | | | | | Reviewers: tberghammer. Subscribers: jaydeep, bhushan, sagar, nitesh.jain,lldb-commits. Differential Revision: http://reviews.llvm.org/D15738 llvm-svn: 256331
* Allow test decorators to use lists (and not_in(list)) for archesAdrian McCarthy2015-12-221-3/+8
| | | | | | Differential Revision: https://mail.google.com/mail/u/0/?zx=w4areffgjbgg#inbox/151cb6afe6169bb0 llvm-svn: 256283
* XFAIL TestCppNsImport on FreeBSDEd Maste2015-12-221-0/+1
| | | | | | | | | It has an existing XFAIL annotation for GCC >= 4.9 but it also fails on FreeBSD 10.x with Clang 3.4.1. llvm.org/pr25925 llvm-svn: 256270
* Add expectedFailureFreeBSD to an additional thread state test failing on FreeBSDEd Maste2015-12-221-0/+1
| | | | | | This new failure has been noted in the existing PR, llvm.org/pr15824 llvm-svn: 256268
* skip TestEvents.py on DarwinTodd Fiala2015-12-221-0/+1
| | | | | | | | | | | | This is generating a SIGSEGV somewhere around 1 in 10 runs on OS X. Skip the whole test to avoid testbot noise until we can get the SIGSEGV addressed. Tracking with: https://llvm.org/bugs/show_bug.cgi?id=25924 llvm-svn: 256257
* test infra: fix lldbinline tests to work with rerunTodd Fiala2015-12-225-2/+42
| | | | | | | Fixes: https://llvm.org/bugs/show_bug.cgi?id=25922 llvm-svn: 256255
* Improve error handling for `frame select` command when there are too many ↵Adrian McCarthy2015-12-222-1/+4
| | | | | | | | | | arguments. Bug: https://llvm.org/bugs/show_bug.cgi?id=25847 It now gives a more specific error message and then returns instead of trying to select the wrong frame. llvm-svn: 256251
* Add expectedFailureFreeBSD to tests failing in the same way as on LinuxEd Maste2015-12-221-0/+3
| | | | | | llvm.org/pr25819 llvm-svn: 256250
* Remove PC -1 offset from FreeBSD arm64 UpdateAfterBreakpointEd Maste2015-12-221-2/+0
| | | | | | It was a copy-and-paste leftover. llvm-svn: 256248
* Don't pack the structs of the jit debug interfaceTamas Berghammer2015-12-221-2/+0
| | | | | | | | | None of the documentation mentions that the entries are packed structs and also none of the other implementation I found pack them. Differential revision: http://reviews.llvm.org/D15715 llvm-svn: 256244
* No need for a custom function here; just use what C providesEnrico Granata2015-12-221-29/+1
| | | | llvm-svn: 256223
* Reduce code duplicationEnrico Granata2015-12-211-64/+16
| | | | llvm-svn: 256212
* Fix emulation of the thumb str instructionTamas Berghammer2015-12-211-2/+10
| | | | llvm-svn: 256147
* [TestCPPAuto] On linux, we need -fno-limit-debug-info.Siva Chandra2015-12-193-1/+6
| | | | | | | | | | | | Summary: Also xfailed for GCC as there is an problem with debug info generation. Reviewers: granata.enrico Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15657 llvm-svn: 256067
* Xcode: remove --test-subdir test reduction from previous check-inTodd Fiala2015-12-181-1/+1
| | | | | | That was not meant to go in, as it was for testing my last change. llvm-svn: 256062
* Xcode build: pass in vt100 to the Python test runner.Todd Fiala2015-12-181-3/+3
| | | | | | | Some of the Green Dragon tests were failing because they didn't have a TERM set. llvm-svn: 256059
* __ne__ is the actual Python operator; __neq__ is a typoEnrico Granata2015-12-181-1/+1
| | | | llvm-svn: 256053
* Add support for seeing through clang::AutoType in ClangASTContextEnrico Granata2015-12-184-10/+205
| | | | | | | | This allows LLDB to deal correctly with expression result variables declared via the C++11 'auto' keyword rdar://problem/23960490 llvm-svn: 256051
* remove xcshareddata exclusion from .gitignore; add desktop and ↵Todd Fiala2015-12-183-2/+160
| | | | | | lldb-python-testsuite shared schemes used by Xcode buildbot llvm-svn: 256043
* Turns out, many people define structs named Point that do not share the same ↵Enrico Granata2015-12-181-1/+1
| | | | | | names that this formatter uses for fields; use the {} syntax to make it so that a failure to parse the summary doesn't cause the entire printout to fail llvm-svn: 256042
* Add a test case that validates that my change in r255603 does the right thingEnrico Granata2015-12-183-0/+85
| | | | llvm-svn: 256034
* Add API to support retrieving the formatters category for a specific languageEnrico Granata2015-12-184-0/+18
| | | | llvm-svn: 256033
* Xcode build: add a lldb-python-test-suite target.Todd Fiala2015-12-181-0/+125
| | | | | | | The llvm.org Green Dragon OS X lldb builder will be using this target to run the LLDB Python test suite. llvm-svn: 256027
* mark TestGlobalVariables.py as XFAIL on OS X dwarf.Todd Fiala2015-12-181-4/+2
| | | | | | | tracking bug: https://llvm.org/bugs/show_bug.cgi?id=25872 llvm-svn: 256006
* Fix the emulation of arm strd instructionTamas Berghammer2015-12-181-2/+5
| | | | | | | The incorrect instruction emulation caused issues in the stack unwinding code when strd was used to push 2 register to the stack with writeback. llvm-svn: 256000
OpenPOWER on IntegriCloud