From 1c5f186f3047aeecc28e1a18ade6d1375708340a Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 30 Nov 2012 19:05:35 +0000 Subject: 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 --- lldb/source/Interpreter/Options.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lldb/source/Interpreter/Options.cpp') 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: -- cgit v1.2.3