summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/Editline.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* EOF is outside the value range of char on architectures with unsignedJoerg Sonnenberger2014-05-021-1/+1
| | | | | | char like ARM. Check for EOF explicitly. llvm-svn: 207859
* Fixed CTRL+C related issues:Greg Clayton2014-05-021-27/+65
| | | | | | | | | | | | - CTRL+C wasn't clearing the command in lldb - CTRL+C doesn't work in python macros in lldb - Ctrl+C no longer interrupts the running process that you attach to <rdar://problem/15949205> <rdar://problem/16778652> <rdar://problem/16774411> llvm-svn: 207816
* Since one or more Editline instances of the same kind (lldb commands, ↵Greg Clayton2014-04-251-57/+157
| | | | | | | | expressions, etc) can exist at once, they should all shared a ref counted history object. Now they do. llvm-svn: 207293
* Change the default key bindings for multi-line mode:Greg Clayton2014-04-231-2/+3
| | | | | | | Up/down arrows select next/prev line in multi-line mode CTRL+N and CTRL+P do next/prev history llvm-svn: 207033
* Fixed a case where if someone added a "bind -v" to their ~/.editrc file, key ↵Greg Clayton2014-04-231-6/+18
| | | | | | | | | | mappings would get messed up. I fixed this by only doing el_set(e, EL_BIND, ...) calls before sourcing the .editrc files. <rdar://problem/16614095> llvm-svn: 207005
* Add the "lldb_complete" .editrc command back in case veteran users of LLDB ↵Greg Clayton2014-03-261-1/+2
| | | | | | | | had .editrc key mappings in their ~/.editrc. <rdar://problem/16279283> llvm-svn: 204870
* Allow line numbers to be shown in multi-line expressions.Greg Clayton2014-03-071-0/+1
| | | | llvm-svn: 203185
* Check call to fgetc for EINTR.Jim Ingham2014-02-271-20/+31
| | | | | | <rdar://problem/16140277> llvm-svn: 202426
* Fix the LLDB prompt for older Editline versions, specifically running on ↵Deepak Panickal2014-02-171-0/+5
| | | | | | Ubuntu 12.04 llvm-svn: 201521
* Host: unconstify editline paramtersSaleem Abdulrasool2014-02-101-4/+8
| | | | | | | | | | | | | | Although the interface to el_push should be a constant parameter (as it is on Darwin), certain Linux distributions currently ship a header which does not provide proper const correctness. This causes compilation failures on Linux. Strip the constness on the parameter, which whilst incorrect, is mostly harmless. The parameter will not be changed by the interface and so it is acceptable to do this. When distributions have updated to a more correct declaration, it would be nice to revert this change. Addresses PR18784. llvm-svn: 201092
* Only set EL_PROMPT_ESC when existing - fix typoSylvestre Ledru2014-02-081-1/+1
| | | | llvm-svn: 201024
* Only set EL_PROMPT_ESC when existingSylvestre Ledru2014-02-081-0/+2
| | | | llvm-svn: 201023
* Pressing ^D in a non-empty input terminates LLDB. This was due to the fact ↵Greg Clayton2014-01-301-1/+15
| | | | | | | | that we stack more than one editline instance on top of each other and we still expect CTRL+D to exit the editline instance, but it should only do so when the line is empty. Otherwise it should (and does) delete the character at the cursor. <rdar://problem/15944703> llvm-svn: 200489
* Merging the iohandler branch back into main. Greg Clayton2014-01-271-0/+671
The many many benefits include: 1 - Input/Output/Error streams are now handled as real streams not a push style input 2 - auto completion in python embedded interpreter 3 - multi-line input for "script" and "expression" commands now allow you to edit previous/next lines using up and down arrow keys and this makes multi-line input actually a viable thing to use 4 - it is now possible to use curses to drive LLDB (please try the "gui" command) We will need to deal with and fix any buildbot failures and tests and arise now that input/output and error are correctly hooked up in all cases. llvm-svn: 200263
OpenPOWER on IntegriCloud