summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Options.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-11-30 19:05:35 +0000
committerGreg Clayton <gclayton@apple.com>2012-11-30 19:05:35 +0000
commit1c5f186f3047aeecc28e1a18ade6d1375708340a (patch)
treed716231a0f16c90a98216ba56a99ba91af5bf7fd /lldb/source/Interpreter/Options.cpp
parentc1c87c15f21384f50a1fcb61e513467a8694c269 (diff)
downloadbcm5719-llvm-1c5f186f3047aeecc28e1a18ade6d1375708340a.tar.gz
bcm5719-llvm-1c5f186f3047aeecc28e1a18ade6d1375708340a.zip
Added new options to "target create" and "target modules add".
For "target create" you can now specify "--no-dependents" to not track down and add all dependent shared libraries. This can be handy when doing manual symbolication. Also added the "--symfile" or "-s" for short so you can specify a module and a stand alone debug info file: (lldb) target create --symfile /tmp/a.dSYM /usr/bin/a Added the "--symfile" option to the "target modules add" for the same reason. These all help with manualy symbolication and expose functionality that was previously only available through the public API layer. llvm-svn: 169023
Diffstat (limited to 'lldb/source/Interpreter/Options.cpp')
-rw-r--r--lldb/source/Interpreter/Options.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index 484e7789e5a..4a04a4639fb 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -274,17 +274,21 @@ Options::GetLongOptions ()
m_getopt_table.resize(num_options + 1);
for (i = 0, j = 0; i < num_options; ++i)
{
- char short_opt = opt_defs[i].short_option;
+ const char short_opt = opt_defs[i].short_option;
if (option_seen.test(short_opt) == false)
{
m_getopt_table[j].name = opt_defs[i].long_option;
m_getopt_table[j].has_arg = opt_defs[i].option_has_arg;
m_getopt_table[j].flag = NULL;
- m_getopt_table[j].val = opt_defs[i].short_option;
+ m_getopt_table[j].val = short_opt;
option_seen.set(short_opt);
++j;
}
+ else
+ {
+ assert (!"duplicate short option character");
+ }
}
//getopt_long requires a NULL final entry in the table:
OpenPOWER on IntegriCloud