[lldb-dev] [Bug 17501] There is no way to set argument like -Xxm100m

via lldb-dev lldb-dev at lists.llvm.org
Tue Jul 17 07:02:40 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=17501

labath at google.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |labath at google.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from labath at google.com ---
The correct syntax here is:

(lldb) settings set -- target.run-args -X
(lldb) settings show target.run-args
target.run-args (array of strings) =
  [0]: "-X"


It is a bit counterintuitive but it is a consequence of how getopt works and
how we chose to represent the arguments to this command. In any case, this
behavior is correctly documented in the help of the settings set command:

(lldb) help settings set 
     Set the value of the specified debugger setting.  Expects 'raw' input (see
'help raw-input'.)

Syntax: settings set <cmd-options> -- <setting-variable-name> <value>

I am not sure if this was working in 2013, but it is working now, so I am
marking this as fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180717/a800a5f1/attachment.html>


More information about the lldb-dev mailing list