<div dir="ltr">This sounds like an easy patch.  Is it subtly more complicated than it sounds?  If it's actually easy as it sounds, I'll just do it.<br></div><br><div class="gmail_quote">On Fri Feb 06 2015 at 11:40:31 AM Jim Ingham <<a href="mailto:jingham@apple.com">jingham@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A long-standing bug in the lldb command help system is that it doesn't print what the default value of boolean flags is.  So for instance you get:<br>
<br>
(lldb) help process launch<br>
<br>
  Launch the executable in the debugger.<br>
<br>
Syntax: process launch <cmd-options> [<run-args>]<br>
<br>
Command Options Usage:<br>
<br>
  process launch [-s] [-A <boolean>] [-p <plugin>] [-w <directory>] [-a <arch>] [-v <none>] [-c[<filename>]] [-i <filename>] [-o <filename>] [-e <filename>] [<run-args>]<br>
  process launch [-st] [-A <boolean>] [-p <plugin>] [-w <directory>] [-a <arch>] [-v <none>] [-c[<filename>]] [<run-args>]<br>
  process launch [-ns] [-A <boolean>] [-p <plugin>] [-w <directory>] [-a <arch>] [-v <none>] [-c[<filename>]] [<run-args>]<br>
<br>
       -A <boolean> ( --disable-aslr <boolean> )<br>
            Set whether to disable address space layout randomization when launching a process.<br>
<br>
You can't tell what you are going to get if don't specify -A.  So I try to write the option so that it indicates what the default value is.  In this case, if you say nothing we'll disable ASLR.  This is obviously just a hack to work around an omission in the help system.  And in a couple of places (like --one-shot in the "breakpoint set" command where I don't do this because it would have made the name really non-obvious.)<br>
<br>
That's a pretty weak reason for the naming, and we really should include the default value - at least for booleans - in the command table and then use it in the help system.<br>
<br>
Jim<br>
<br>
<br>
<a href="http://reviews.llvm.org/D7468" target="_blank">http://reviews.llvm.org/D7468</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/<u></u>settings/panel/<u></u>emailpreferences/</a><br>
<br>
<br>
</blockquote></div>