<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - There is no way to set argument like -Xxm100m"
href="http://llvm.org/bugs/show_bug.cgi?id=17501">17501</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>There is no way to set argument like -Xxm100m
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>yin@affinic.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>On Oct 7, 2013, at 2:27 PM, Yin Ma <<a href="mailto:yin@affinic.com">yin@affinic.com</a>> wrote:
Hi
To set up a run argument, based on the document, it should be
Settings set target.run-args , like gdb set args
However, no matter how, I cannot set my argument to –Xxm100M
I tried
Settings set target.run-args –Xxm100M
Lldb: invalid option – X
I also tried
Settings set target.run-args “-Xxm100M”
Doesn’t work.
Unfortunately you seem to be right. The only way I have been able to make this
work is by saying:
(lldb) sett set target.run-args -- --Xxm100M
(lldb) r
Process 5112 launched: '/private/tmp/args' (x86_64)
argv[0] = args
argv[1] = --
argv[2] = --Xxm100M
but as you can see, this causes a spurious - - (double dash) to be passed down
to your inferior process
Seems worth of a bugzilla to me. With that said, while I have not tried it, I
am kinda optimistic that SBLaunchInfo (the API class) would not be subject to
the same bug, since this is more of a command-line issue than anything</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>