diff options
author | Greg Clayton <gclayton@apple.com> | 2013-04-04 20:35:24 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-04-04 20:35:24 +0000 |
commit | b7ad58a0dfe2a3db177472dacadc474a608e9bc0 (patch) | |
tree | 70e9c446c7e28b8b945c37d2665b027f9e8e67ea /lldb/tools/debugserver/source/debugserver.cpp | |
parent | 563d9dc1b2ad4b7622575f7fbfdb99c84400d442 (diff) | |
download | bcm5719-llvm-b7ad58a0dfe2a3db177472dacadc474a608e9bc0.tar.gz bcm5719-llvm-b7ad58a0dfe2a3db177472dacadc474a608e9bc0.zip |
<rdar://problem/13457391>
LLDB now can use a single dash for all long options for all commands form the command line and from the command interpreter. This involved just switching all calls from getopt_long() to getopt_long_only().
llvm-svn: 178789
Diffstat (limited to 'lldb/tools/debugserver/source/debugserver.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/debugserver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/tools/debugserver/source/debugserver.cpp b/lldb/tools/debugserver/source/debugserver.cpp index 4fcc0a18073..c69121ee232 100644 --- a/lldb/tools/debugserver/source/debugserver.cpp +++ b/lldb/tools/debugserver/source/debugserver.cpp @@ -760,7 +760,7 @@ show_usage_and_exit (int exit_code) //---------------------------------------------------------------------- -// option descriptors for getopt_long() +// option descriptors for getopt_long_only() //---------------------------------------------------------------------- static struct option g_long_options[] = { @@ -880,7 +880,7 @@ main (int argc, char *argv[]) } // NULL terminate the short option string. short_options[short_options_idx++] = '\0'; - while ((ch = getopt_long(argc, argv, short_options, g_long_options, &long_option_index)) != -1) + while ((ch = getopt_long_only(argc, argv, short_options, g_long_options, &long_option_index)) != -1) { DNBLogDebug("option: ch == %c (0x%2.2x) --%s%c%s\n", ch, (uint8_t)ch, @@ -1106,7 +1106,7 @@ main (int argc, char *argv[]) // fprintf(stderr, "error: no architecture was specified\n"); // exit (8); // } - // Skip any options we consumed with getopt_long + // Skip any options we consumed with getopt_long_only argc -= optind; argv += optind; |