From 8651121c11e4b047924bafab305b7bec4395941b Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 15 Jun 2010 18:47:14 +0000 Subject: Change the Options parser over to use a mask rather than an ordinal for option sets. Fixed the Disassemble arguments so you can't specify start address or name in multiple ways. Fixed the command line input so you can specify the filename without "-f" even if you use other options. llvm-svn: 106020 --- lldb/source/Commands/CommandObjectThread.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lldb/source/Commands/CommandObjectThread.cpp') diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 0cc326f..76d13e8 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -619,8 +619,8 @@ g_duo_running_mode[] = lldb::OptionDefinition CommandObjectThreadStepWithTypeAndScope::CommandOptions::g_option_table[] = { -{ 0, true, "avoid_no_debug", 'a', required_argument, NULL, 0, "", "Should step-in step over functions with no debug information"}, -{ 0, true, "run_mode", 'm', required_argument, g_tri_running_mode, 0, "", "Determine how to run other threads while stepping this one"}, +{ LLDB_OPT_SET_1, true, "avoid_no_debug", 'a', required_argument, NULL, 0, "", "Should step-in step over functions with no debug information"}, +{ LLDB_OPT_SET_1, true, "run_mode", 'm', required_argument, g_tri_running_mode, 0, "", "Determine how to run other threads while stepping this one"}, { 0, false, NULL, 0, 0, NULL, 0, NULL, NULL } }; @@ -1056,9 +1056,9 @@ protected: lldb::OptionDefinition CommandObjectThreadUntil::CommandOptions::g_option_table[] = { -{ 0, true, "frame", 'f', required_argument, NULL, 0, "", "Frame index for until operation - defaults to 0"}, -{ 0, true, "thread", 't', required_argument, NULL, 0, "", "Thread index for the thread for until operation"}, -{ 0, true, "run_mode", 'm', required_argument, g_duo_running_mode, 0, "", "Determine how to run other threads while stepping this one"}, +{ LLDB_OPT_SET_1, true, "frame", 'f', required_argument, NULL, 0, "", "Frame index for until operation - defaults to 0"}, +{ LLDB_OPT_SET_1, true, "thread", 't', required_argument, NULL, 0, "", "Thread index for the thread for until operation"}, +{ LLDB_OPT_SET_1, true, "run_mode", 'm', required_argument, g_duo_running_mode, 0, "", "Determine how to run other threads while stepping this one"}, { 0, false, NULL, 0, 0, NULL, 0, NULL, NULL } }; -- cgit v1.1