[Lldb-commits] [PATCH] Fix handling of backslashes in Args parsing

Pavel Labath labath at google.com
Thu Feb 26 07:06:53 PST 2015


I have taken your last comment as an expression of desire to do shell like quoting (which I
preferred anyway), so I have made a new version of the patch which tries to emulate that. In
double quotes, backslash can be used to escape things and is removed from the argument. In single quotes, the backslash is not special and is preserved. This has the added benefit that copy pasting program arguments from shell to "process launch" will most likely "just work".

I have also taken the liberty to modernize some of the code with StringRefs.


http://reviews.llvm.org/D7855

Files:
  include/lldb/Interpreter/Args.h
  source/Interpreter/Args.cpp
  test/settings/quoting/Makefile
  test/settings/quoting/TestQuoting.py
  test/settings/quoting/main.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7855.20760.patch
Type: text/x-patch
Size: 19663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150226/7a558873/attachment.bin>


More information about the lldb-commits mailing list