summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix PATH_MAX definition after remarks in r231917 (MI)Ilia K2015-03-123-4/+3
| | | | llvm-svn: 232008
* Fix build on Windows (PATH_MAX was undefined) after r231858Ilia K2015-03-111-1/+2
| | | | llvm-svn: 231917
* Add =shlibs-added/=shlibs-removed notifications (MI)Ilia K2015-03-105-3/+186
| | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch adds =shlibs-added/=shlibs-removed notifications in lldb-mi. In more detail: # Add Target::ModulesDidLoad/ModulesDidUnload notifications # Improve Target::TargetEventData: ## Refactoring ## Move it back to include/lldb/Target/Target.h ## Add Target::{GetModuleListFromEvent,GetModuleList}; Add Target::m_module_list # Add SBModule::{GetSymbolVendorMainFileSpec,GetObjectFileHeaderAddress} # Add SBTarget::{EventIsTaretEvent,GetTargetFromEvent,GetNumModulesFromEvent,GetModuleAtIndexFromEvent} All tests pass on OS X. Reviewers: abidh, zturner, jingham, clayborg Reviewed By: clayborg Subscribers: jingham, zturner, lldb-commits, clayborg, abidh Differential Revision: http://reviews.llvm.org/D8201 llvm-svn: 231858
* Fix -var-create and -var-update (MI)Ilia K2015-03-064-171/+108
| | | | | | | | | | | | | | | | | | | | | Summary: This patch includes: * Fix -var-create command for global/static variables * Fix -var-update command: remove m_strValueName/m_eVarInfoFormat/m_bValueChanged{Array,Composite,Normal}Type; clean CMICmdCmdVarUpdate::Execute and CMICmdCmdVarUpdate::Acknowledge; improve CMICmdCmdVarUpdate::MIFormResponse; Complete the value after -var-create using the CMICmdCmdVarCreate::CompleteSBValue to get SBValue::GetValueDidChange work. * Add non-constant version of CMICmnLLDBDebugSessionInfoVarObj::GetValue * Add MiVarTestCase.test_lldbmi_var_update test All tests pass on OS X. Reviewers: abidh, emaste, clayborg Reviewed By: clayborg Subscribers: lldb-commits, emaste, clayborg, abidh Differential Revision: http://reviews.llvm.org/D8110 llvm-svn: 231525
* Added long 'print-values' option for var-update MI command.Ilia K2015-03-043-13/+45
| | | | | | | | | | | | | | | | | | | Summary: The -var-update MI command should take the same print-values options as var-list children, however currently only the integer versions are supported. Added --no-values, --all-values, and --simple-values long options. See: https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Variable-Objects.html#GDB_002fMI-Variable-Objects Patch from ewan@codeplay.com Reviewers: EwanCrawford Subscribers: ki.stfu, lldb-commits Differential Revision: http://reviews.llvm.org/D8008 llvm-svn: 231233
* Allow to pass an executable file via lldb-mi arguments (MI)Ilia K2015-03-032-6/+10
| | | | | | | | | | | | | | | | | | | | Summary: # Allow to pass an executable file via lldb-mi arguments # Add tests # Fix (gdb) prompt in CMIDriver::LocalDebugSessionStartupExecuteCommands # Fix prompt in CMIDriver::InterpretCommandThisDriver: use the lldb-mi prompt instead of a hard-coded value. All tests pass on OS X. Reviewers: abidh, clayborg Reviewed By: clayborg Subscribers: lldb-commits, clayborg, abidh Differential Revision: http://reviews.llvm.org/D8001 llvm-svn: 231070
* Rename CMIDriver::LocalDebugSessionStartupInjectCommands to ↵Ilia K2015-03-022-3/+3
| | | | | | CMIDriver::LocalDebugSessionStartupExecuteCommands after r230003 llvm-svn: 230944
* Fix handling of double quotes (MI)Ilia K2015-02-265-162/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: * Clean CMICmdArgValString::Validate: now it's based on CMIUtilString::SplitConsiderQuotes method: A bit of introduction: # Command line is wrapped into CMICmdArgContext. # CMICmdArgSet is a set of arguments to be parsed. This class contains CMICmdArgContext as a private member. # MI command is class which is inhereted from CMICmdBase. It contains CMICmdArgSet as a private member. When command is executed CMICmdBase::ParseArgs() is called. This method adds args for parsing using CMICmdArgSet::Add(). Then CMICmdBase::ParseValidateCmdOptions() is called, which calls CMICmdArgSet::Validate(). Then it gets a number of arguments (using SplitConsiderQuotes().array_length) and for each arguments registered in ParseArgs() tries to validate it using CMICmdArgValBase::Validate(). Every user commands parses this string again (first time it was made in SplitConsiderQuotes) and in case of CMICmdArgValString it was made incorrectly. It searches the first and last quotes (but it should be first and next after first). Besides, it was splitted into 4 cases. I'm just using SplitConsiderQuotes directly, and I don't split them by hand again. Actually, I think we should do so in every CMICmdArgVal_XXX::Validate() method. * Enable MiInterpreterExecTestCase.test_lldbmi_target_create test * Fix MiExecTestCase.test_lldbmi_exec_arguments_set test All tests pass on OS X. Reviewers: abidh, emaste, zturner, clayborg Reviewed By: clayborg Subscribers: lldb-commits, zturner, emaste, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7860 llvm-svn: 230654
* Fix process's output to stdout/stderr (MI)Ilia K2015-02-264-81/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: * Add CMIUtilString::Escape/Unescape methods (MI) * Fix process's output to stdout/stderr (MI): lldb-mi escapes process's output to show it in the following format: ``` ~"..." ``` But previously not all characters were escaped by CMICmnLLDBDebuggerHandleEvents::ConvertPrintfCtrlCodeToString and output of ``` printf("'\n` - it's \\n\x12\"\\\"") ``` looked like: ``` ~"'\r\n` - it's \n"\"" ``` This patch fixes it by using CMIUtilString::Escape method and now it looks like: ``` ~"'\r\n` - it's \\n\x12\"\\\"" ``` Reviewers: abidh, emaste, clayborg Reviewed By: clayborg Subscribers: zturner, lldb-commits, emaste, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7858 llvm-svn: 230652
* Fix comments in tools/lldb-mi/MIDriver.hIlia K2015-02-261-3/+3
| | | | llvm-svn: 230648
* Fix usage of shared_ptr for array which may cause a undefined behaviour (use ↵Ilia K2015-02-261-3/+3
| | | | | | unique_ptr instead) llvm-svn: 230630
* Add extra acceptable characters to CMICmdArgValFile (MI)Ilia K2015-02-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: Improve CMICmdArgValFile::IsValidChars to accept extra characters that can be in file name: ``` .'\"`@#$%^&*()_+-={}[]| ``` Enable MiSyntaxTestCase.test_lldbmi_specialchars test. All test pass on OS X. Reviewers: abidh, emaste, zturner, clayborg Reviewed By: clayborg Subscribers: lldb-commits, zturner, emaste, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7859 llvm-svn: 230468
* [CMake] Clean up lldb-mi CMakeLists.txt.Zachary Turner2015-02-241-160/+85
| | | | | | | It was maintaining two huge file lists that are identical except for 1 file. Make this work the proper way. llvm-svn: 230398
* Resubmit "[CMake] Change lldbAPI to be a CMake OBJECT library."Zachary Turner2015-02-241-159/+161
| | | | | | | | | | This resubmits r230380. The primary cause of the failure was actually just a warning, which we can disable at the CMake level in a followup patch on the LLVM side. The other thing which was actually an error on the bot should be able to be fixed with a clean. llvm-svn: 230389
* Revert "[CMake] Change lldbAPI to be a CMake OBJECT library."Zachary Turner2015-02-241-161/+159
| | | | | | | This reverts commit r230380. It causes CMake to fail on certain machines with an error about needing to use string(STRIP_GENEX). llvm-svn: 230382
* [CMake] Change lldbAPI to be a CMake OBJECT library.Zachary Turner2015-02-241-159/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | An OBJECT library is a special type of CMake library that produces no archive, has no link interface, and no link inputs. It is like a regular archive, just without the physical output. To link against an OBJECT library, you reference it in the *source* file list of a library using the special syntax $<TARGET_OBJECTS:lldbAPI>. This will cause every object file to be passed to the linker independently, as opposed to a single archive being passed to the linker. This is *extremely* important on Windows. lldbAPI exports all of the SB classes using __declspec(dllexport). Unfortunately for technical reasons it is not possible (well, extremely difficult) to get the linker to propagate a __declspec(dllexport) attribute from a symbol in an object file in an archive to a DLL that links against that archive. The solution to this is for the DLL to link the object files directly. So lldbAPI must be an OBJECT library. This fixes an issue that has been present since the duplicated lldbAPI file lists were removed, which would cause linker failures. As a side effect, this also makes LLDB_DISABLE_PYTHON=1 work again on Windows, which was previously totally broken. llvm-svn: 230380
* Remove redundant code from lldb-mi.Hafiz Abid Qadeer2015-02-248-979/+6
| | | | | | | | | | | | | | | | | | | | | | | | Summary: After recent changes, some code has become redundant. This revision tries to remove the un-used code and tidy up the rest. Following 4 files have been removed. I have updated CMake files and checked that it builds fine on Linux and Windows. Can somebody update the xcode related file accordingly? tools/lldb-mi/MICmnStreamStdinLinux.cpp tools/lldb-mi/MICmnStreamStdinLinux.h tools/lldb-mi/MICmnStreamStdinWindows.cpp tools/lldb-mi/MICmnStreamStdinWindows.h Reviewers: clayborg, ki.stfu Reviewed By: clayborg, ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7834 llvm-svn: 230345
* Add -exec-abort command (MI); Don't exit on eStateExitedIlia K2015-02-248-24/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add -exec-abort command + test. Also, I had fixed an error, when lldb-mi exits on eStateExited. With current patch we can re-run target: ``` -file-exec-and-symbols hello ^done -exec-run ^running *stopped,reason="breakpoint-hit"... -exec-abort ^done *stopped,reason="exited-normally"... <- program exits -exec-run <- run again ^running *stopped,reason="breakpoint-hit"... ``` All tests pass on OS X. Reviewers: zturner, emaste, abidh, clayborg Reviewed By: abidh, clayborg Subscribers: lldb-commits, emaste, zturner, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7794 llvm-svn: 230321
* Fix a problem where lldb-mi would not stop the debuggee after ↵Hafiz Abid Qadeer2015-02-232-89/+124
| | | | | | | | | | | | | | | | | | | | | | | | -exec-interrupt command. Summary: This revision fixes a problem where lldb-mi would not stop the execution after exec-interrupt call. On Linux, SIGSTOP is used to stop the debuggee process. LLDB stopped the debuggee alright. But when lldb-mi received the notification of stopping with reason as SIGSTOP, it would resume the process. This was heppening in CMICmnLLDBDebuggerHandleEvents::HandleProcessEventStopSignal. This function aslo used hard coded numbers for signal istead of symbolic names. This revision changes code to treat SIGSTOP reason as SIGINT. Also used symbolic names for signals instead of numbers. Reviewers: ki.stfu, clayborg Reviewed By: ki.stfu, clayborg Subscribers: zturner, lldb-commits Differential Revision: http://reviews.llvm.org/D7783 llvm-svn: 230237
* Don't use:Greg Clayton2015-02-212-2/+2
| | | | | | | | | | #include <lldb/API/*>" Please use: #include "lldb/API/*" llvm-svn: 230106
* Minor changes after r229901: move the CMICmdCmdStackSelectFrame to the end ↵Ilia K2015-02-201-21/+21
| | | | | | of header file llvm-svn: 230028
* Add -symbol-list-lines command (MI)Ilia K2015-02-206-0/+268
| | | | | | | | | | | | | | | | | Summary: Add -symbol-list-lines command + test. All test passed on OS X. Reviewers: emaste, abidh, clayborg Reviewed By: clayborg Subscribers: lldb-commits, clayborg, abidh, emaste Differential Revision: http://reviews.llvm.org/D7768 llvm-svn: 230008
* Reduce number of threads in lldb-mi.Hafiz Abid Qadeer2015-02-208-172/+105
| | | | | | | | | | | | | | | | | | | | | LLDB-mi have 3 threads. 1. Wait for input. 2. Process commands. 3. Process events. This revision merges 1 & 2. Same thread waits on input and then process the command. This way, no synchronization is needed between first and 2nd. Also it is easy to check when to exit. A lot of code will redundant and will be cleaned up gradually. All lldb-mi tests pass with gcc and clang as test compiler. Also did minimal testing on command line and works ok. The "quit" and "-gdb-exit" command close the application without needing any further return. Reviewed in http://reviews.llvm.org/D7746. llvm-svn: 230003
* Add -stack-select-frame command (MI)Ilia K2015-02-193-0/+154
| | | | | | | | | | | | | | | | | Summary: Add -stack-select-frame command + test. All tests pass on OS X. Reviewers: abidh, emaste, clayborg Reviewed By: clayborg Subscribers: lldb-commits, emaste, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7765 llvm-svn: 229901
* Fix usage of m_bThreadInvalid in -thread-info (MI)Ilia K2015-02-191-3/+3
| | | | llvm-svn: 229868
* Add -stack-info-frame command (MI)Ilia K2015-02-193-0/+140
| | | | | | | | | | | | | | | | | Summary: Add -stack-info-frame command + test. All tests pass on OS X. Reviewers: emaste, clayborg, abidh Reviewed By: abidh Subscribers: lldb-commits, clayborg, emaste, abidh Differential Revision: http://reviews.llvm.org/D7750 llvm-svn: 229857
* Fix line crossing 80 column border.Hafiz Abid Qadeer2015-02-181-1/+1
| | | | llvm-svn: 229681
* Fix a typo.Hafiz Abid Qadeer2015-02-181-1/+1
| | | | llvm-svn: 229663
* Fix test_lldbmi_prompt test by enabling ShowPrompt in CMICmnStreamStdin by ↵Ilia K2015-02-131-1/+1
| | | | | | default llvm-svn: 229137
* Fix -data-read-memory-bytes command (MI)Ilia K2015-02-135-21/+72
| | | | | | | | | | | | | | | | | | | | | | Summary: * Add IsHexadecimalNumber method to CMIUtilString (MI) * Add number format (dec,hex,auto) to CMICmdArgValNumber (MI) * Fix -data-read-memory-bytes to pass address in hex format (MI) * Fix output begin/end/offset fields format in -data-read-memory-bytes * Fix CMICmdArgValNumber::ExtractNumber to extract 64bit value * + tests All tests passed on OS X Reviewers: abidh, zturner, clayborg Reviewed By: clayborg Subscribers: lldb-commits, zturner, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7610 llvm-svn: 229132
* Add missing prompt when command doesn't exist (MI)Ilia K2015-02-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | It fixes the following example: ``` $ bin/lldb-mi --interpreter (gdb) -not-found ^error,msg="Driver. Received command '-not-found'. It was not handled. Command 'not-found' not in Command Factory" -not-found ^error,msg="Driver. Received command '-not-found'. It was not handled. Command 'not-found' not in Command Factory" ``` After the fix it looks like: ``` $ bin/lldb-mi --interpreter -not-found ^error,msg="Driver. Received command '-not-found'. It was not handled. Command 'not-found' not in Command Factory" (gdb) -not-dounf ^error,msg="Driver. Received command '-not-dounf'. It was not handled. Command 'not-dounf' not in Command Factory" (gdb) ``` llvm-svn: 229131
* Add -exec-arguments commandIlia K2015-02-134-7/+165
| | | | | | | | | | | | | | | | | Summary: This patch adds -exec-arguments command for lldb-mi. -exec-arguments command allows to specify arguments for executable file in MI mode. Also it contains tests for that command. Btw, new added files was formatted by clang-format. Reviewers: abidh, zturner, clayborg Reviewed By: clayborg Subscribers: zturner, emaste, clayborg, jingham, lldb-commits Differential Revision: http://reviews.llvm.org/D6965 llvm-svn: 229110
* Fix for http://llvm.org/bugs/show_bug.cgi?id=21744Hafiz Abid Qadeer2015-02-135-346/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | GetVariableInfo () collected the values of the variable in a list. But it also tried to generate the name/value pairs for children. This caused generation of a wrong value string for may items. This function has been fixed to put value in the list only. The handling of --print-value related option has been moved to caller. GetVariableInfo2 and MIResponseFormVariableInfo3 have been removed. They were almost the duplicate of functions of similar names. I dont see any difference in the output of -stack-list-locals and -stack-list-arguments. So these functions just seemed unnecessary. Char variable was being printed as a string which caused garbage output. This has been fixed. Some misc. cleanup. Test cases have been added that check -stack-list-locals for struct, array and pointers. Modified other tests which depended on hard coded line numbers. Reviewed in http://reviews.llvm.org/D7589 llvm-svn: 229102
* Fix segfault notification in lldb-miIlia K2015-02-112-0/+40
| | | | | | | | | | | | | | | | | Summary: This patch adds system exception handling in lldb-mi + tests. All tests pass on OS X. Reviewers: zturner, abidh, clayborg Reviewed By: clayborg Subscribers: emaste, lldb-commits, zturner, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7500 llvm-svn: 228803
* Fix CMIUtilString::SplitConsiderQuotes (MI)Ilia K2015-02-112-98/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This method doesn't work properly. Here is an example: ``` CMIUtilString test("\"hello\" \"\\\" world \\\" !\""); CMIUtilString::VecString_t res; test.SplitConsiderQuotes(" ", res); ``` Before this patch the result was as following: ``` (lldb) print res (CMIUtilString::VecString_t) $1 = size=4 { [0] = (std::__1::string = "\"hello\"") [1] = (std::__1::string = "\"\\\"") [2] = (std::__1::string = "world") [3] = (std::__1::string = "\\\" !\"") } ``` This patch fixes that error and now it looks like following: ``` (lldb) print res (CMIUtilString::VecString_t) $1 = size=2 { [0] = (std::__1::string = "\"hello\"") [1] = (std::__1::string = "\"\\\" world \\\" !\"") } ``` Reviewers: abidh, emaste, clayborg Reviewed By: clayborg Subscribers: lldb-commits, emaste, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7532 llvm-svn: 228802
* Fix build on Windows which was broken by a recent commit.Hafiz Abid Qadeer2015-02-101-0/+4
| | | | | | | | This file MICmnStreamStdinLinux.cpp is wrongly added in the windows build. It has no use there. CMakeList.txt for lldb-mi needs to be re-factored to include the right file for each build. This is quick fix to un-break the build. llvm-svn: 228714
* Fix the LLDB build under Debian KfreebsdSylvestre Ledru2015-02-103-3/+3
| | | | | | | | | | | | | | Summary: I don't know if there is a better way for the change in source/Host/freebsd/ThisThread.cpp Reviewers: emaste Subscribers: hansw, emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D7441 llvm-svn: 228710
* Fix multiple problems of lldb-mi blocking on input monitoring and needing a ↵Hafiz Abid Qadeer2015-02-102-21/+25
| | | | | | | | | | | | | | | | | | | | | | | | | return. Summary: One of the problem is reported here. http://llvm.org/bugs/show_bug.cgi?id=22411 A fix was committed for this problem that works only for OSX. This revision extends that fix to other system. The select system call has some limitation with multi-threaded application which have been addresses here. LLDB-mi exits if quit command is given but needs an extra retur if -gdb-exit is given. That issue has also been addressed. Reviewers: ki.stfu, emaste Reviewed By: ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7529 llvm-svn: 228709
* Add thread-id field in *stopped notification (MI)Ilia K2015-02-101-3/+7
| | | | | | | | | | | | | | | | | Summary: Add thread-id field in *stopped notification (MI) + tests All tests pass on OS X Reviewers: zturner, clayborg, abidh Reviewed By: clayborg Subscribers: lldb-commits, zturner, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7501 llvm-svn: 228681
* Fix test case for data-disassemble instruction in lldb-mi.Hafiz Abid Qadeer2015-02-091-2/+7
| | | | | | | | | Previously the offset field showed the offset from the section base. I have fixed it so that first disassembled instruction has offset of 0. Also made a little modification in the test case to match the output coming form the lldb-mi. llvm-svn: 228577
* Fix a handling of full path in break-insert.Hafiz Abid Qadeer2015-02-081-12/+9
| | | | | | | | | | | | | | | | | | | | For some time, eclipse (CDT) uses full path of the file in break-insert command when putting breakpoint on a source line. On windows, a typical command looks like the following. 56-break-insert -f F:\\work\\ws\\test\\main.c:49 Current implementation in lldb-mi have problem in 2 ways. 1. It was assuming that there will be only one : in the path which is wrong if full path is supplied. 2. CDT sends out path with double backslashes in windows which gives error on resolution. Fixed the : issue in lldb-mi. Changed FileSpec::Normalize to make sure that it handles the path with \\ correctly. Added test cases to check for full path in both lldb-mi and lldb. Also added a test case to check SBFileSpec with double slashes. llvm-svn: 228538
* Fix evaluation commands (MI)Ilia K2015-02-063-30/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: These changes include: * Fix -var-create to be able use current frame '*' (MI) * Fix print-values option in -var-update (MI) * Fix 'variable doesn't exist' error in -var-show-attributes (MI) * Mark print-values option as 'handled-by-cmd' in -var-update (MI) * Fix SBValue::GetValueDidChange if value was changed * Fix lldb-mi: -data-evaluate-expression shows undef vars. Before this fix -data-evaluate-expression perceives undefined variables as strings: ``` (gdb) -data-evaluate-expression undef ^done,value="undef" ``` * Minor fix: -data-evaluate-expression uses IsUnknownValue() * Enable MiEvaluateTestCase test All test pass on OS X. Reviewers: abidh, clayborg Subscribers: lldb-commits, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7463 llvm-svn: 228414
* Fix -stack-list-locals and -stack-list-arguments (MI)Ilia K2015-02-067-111/+317
| | | | | | | | | | | | | | | | | | | | Summary: These changes include: * Add eVariableInfoFormat argument for MIResponseFormVariableInfo{,2,3} and GetVariableInfo{,2} functions * Fix -stack-list-locals and -stack-list-arguments: they ingored print-values * Enable MiStackTestCase tests for -stack-list-xxx commands All test pass on OS X. Reviewers: abidh, clayborg Reviewed By: abidh Subscribers: lldb-commits, clayborg, abidh Differential Revision: http://reviews.llvm.org/D7462 llvm-svn: 228412
* Fix -data-list-register-names/-data-disassemble, minor fix in ↵Ilia K2015-02-062-48/+134
| | | | | | | | | | | | | | | | | | | | | | | -data-list-register-values (MI) Summary: * Fix -data-list-register-names command: previously it ignored regno arguments and always showed all registers * Add 'size' field to -data-disassemble command: now we are able to get an instruction's size * Minor fix in -data-list-register-value: fix comments/code style * Enable all tests in MiDataTestCase * Fix the GetRegister function that gets an register by its index These changes were tested on OS X; all MiDataTestCase tests were passed. Reviewers: clayborg, abidh Reviewed By: clayborg, abidh Subscribers: clayborg, abidh, lldb-commits Differential Revision: http://reviews.llvm.org/D7442 llvm-svn: 228393
* Give error on "-inferior-tty-set" command.Hafiz Abid Qadeer2015-02-061-1/+1
| | | | | | | This command is not implemented yet. Giving error gives chance to clients to handle it properly instead of falsely assuming the lldb-mi is supporting it. llvm-svn: 228389
* Test commitIlia K2015-02-051-1/+1
| | | | llvm-svn: 228315
* Fix "-data-list-register-values" MI commands.Hafiz Abid Qadeer2015-02-052-17/+58
| | | | | | | | | | | If register numbers are not provided then this commands is supposed to return all the register values. But it was returning nothing in that case. More details about this command at https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Data-Manipulation.html#GDB_002fMI-Data-Manipulation llvm-svn: 228304
* Fix a typo in list-register-names command.Hafiz Abid Qadeer2015-02-051-1/+1
| | | | | | It was giving error when process was valid. llvm-svn: 228299
* Add missing options in -var-list-children command.Hafiz Abid Qadeer2015-02-052-11/+47
| | | | | | | | | | | | | The options are checked in the following order. print-values no-values all-values simple-values See the following link for the details of these arguments. https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Variable-Objects.html llvm-svn: 228296
* Fix a typo.Hafiz Abid Qadeer2015-02-041-1/+1
| | | | | | | | | | The member m_nTimes is used in rest of lldb-mi to represent hit count. In one place, it was assigned a wrong value (number of locations). This resulted in lldb-mi showing a hit count of variable 1 when it was created. Committed as obvious. llvm-svn: 228150
OpenPOWER on IntegriCloud