[Lldb-commits] [PATCH] Add more characters to be 'shell escaped'

Joe Ranieri joe at alacatialabs.com
Fri Aug 16 09:42:02 PDT 2013

Currently, when trying to debug an application with lldb that contains
parenthesis in its paths, lldb doesn't escape those before passing the
arguments to bash. As a result, things fall on their face with errors like:
/bin/bash: -c: line 0: syntax error near unexpected token `('
/bin/bash: -c: line 0: `exec /usr/bin/arch -arch i386 /Users/joe/Builds\ -\
untitled/Mac\ OS\ X\ (Cocoa\ Intel)/My\ Application.app/Contents/MacOS/My\

Attached is a patch that adds the ()$ to the list of escaped characters.

-- Joe Ranieri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20130816/9b054d63/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: escapes.diff
Type: application/octet-stream
Size: 576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20130816/9b054d63/attachment.obj>

More information about the lldb-commits mailing list