llvm-project/lldb
Daniel Malea 243b36931f Fix linux argument completion with for "--" options (llvm.org/bugs/pr14425)
Patch by Yacine Belkadi!

When __GLIBC__ is defined, optind gets initialized to 0. So for the first parsed
option, parse_start is 0, too. If this option has no argument (Like "--continue"
of "process attach"), then the position stored is 0, instead of 1. This prevents
the completion later on in Options::HandleOptionCompletion() because the opt_pos
doesn't match the cursor_index.

Fix that by getting the option's position from the value of optind, as it's done
for the other types of options.

Re-enable test_process_attach_dash_dash_con() on Linux.

No regressions detected on Mac OS X (in TestCompletion.py)

llvm-svn: 180114
2013-04-23 15:28:10 +00:00
..
docs Updated the code signing docs. 2013-03-29 17:53:55 +00:00
examples One line I forgot to remove. 2013-04-23 09:49:03 +00:00
include Remove duplicate define 2013-04-23 12:18:53 +00:00
lib Fix makefile build by linking needed library 'irreader' 2013-03-28 17:08:09 +00:00
lldb.xcodeproj <rdar://problem/13590152> 2013-04-22 18:26:52 +00:00
lldb.xcworkspace Move the performance test cases into their own project. 2013-03-18 23:05:00 +00:00
resources Updated Apple LLDB version to lldb-300.99.0. Also 2013-03-07 22:29:06 +00:00
scripts Forgot to include the diagnose_unwind.py script in the initialization of 2013-04-23 04:21:14 +00:00
source Fix linux argument completion with for "--" options (llvm.org/bugs/pr14425) 2013-04-23 15:28:10 +00:00
test Fix linux argument completion with for "--" options (llvm.org/bugs/pr14425) 2013-04-23 15:28:10 +00:00
tools Proper English not optional 2013-04-22 21:58:48 +00:00
utils Minor update to Vim frontend: simplify breakpoints display (and list unresolved breakpoints) 2013-02-12 00:31:40 +00:00
www Document how to get "info line" information from "image lookup -v". 2013-04-18 22:03:01 +00:00
.gitignore Remove "llvm" from list of things to ignore. This results in the 2012-03-03 06:43:59 +00:00
CMakeLists.txt Split Linux-specific and OS X specific stuff. Add include_directories 2013-04-19 00:19:04 +00:00
INSTALL.txt Update INSTALL.txt to mention LLDB builds on Linux with GCC or Clang. 2013-02-21 22:37:18 +00:00
LICENSE.TXT
Makefile Fix Linux i386 build 2013-03-07 00:48:53 +00:00