src/share/vm/services/diagnosticFramework.cpp

changeset 3402
4f25538b54c9
parent 3329
3b688d6ff3d0
child 3559
f1cb6f9cfe21
     1.1 --- a/src/share/vm/services/diagnosticFramework.cpp	Thu Jan 05 17:16:13 2012 -0500
     1.2 +++ b/src/share/vm/services/diagnosticFramework.cpp	Mon Jan 09 10:27:24 2012 +0100
     1.3 @@ -226,7 +226,7 @@
     1.4  }
     1.5  
     1.6  void DCmdParser::print_help(outputStream* out, const char* cmd_name) {
     1.7 -  out->print("\nSyntax : %s %s", cmd_name, _options == NULL ? "" : "[options]");
     1.8 +  out->print("Syntax : %s %s", cmd_name, _options == NULL ? "" : "[options]");
     1.9    GenDCmdArgument* arg = _arguments_list;
    1.10    while (arg != NULL) {
    1.11      if (arg->is_mandatory()) {
    1.12 @@ -373,6 +373,30 @@
    1.13    }
    1.14  }
    1.15  
    1.16 +void DCmdWithParser::parse(CmdLine* line, char delim, TRAPS) {
    1.17 +  _dcmdparser.parse(line, delim, CHECK);
    1.18 +}
    1.19 +
    1.20 +void DCmdWithParser::print_help(const char* name) {
    1.21 +  _dcmdparser.print_help(output(), name);
    1.22 +}
    1.23 +
    1.24 +void DCmdWithParser::reset(TRAPS) {
    1.25 +  _dcmdparser.reset(CHECK);
    1.26 +}
    1.27 +
    1.28 +void DCmdWithParser::cleanup() {
    1.29 +  _dcmdparser.cleanup();
    1.30 +}
    1.31 +
    1.32 +GrowableArray<const char*>* DCmdWithParser::argument_name_array() {
    1.33 +  return _dcmdparser.argument_name_array();
    1.34 +}
    1.35 +
    1.36 +GrowableArray<DCmdArgumentInfo*>* DCmdWithParser::argument_info_array() {
    1.37 +  return _dcmdparser.argument_info_array();
    1.38 +}
    1.39 +
    1.40  Mutex* DCmdFactory::_dcmdFactory_lock = new Mutex(Mutex::leaf, "DCmdFactory", true);
    1.41  
    1.42  DCmdFactory* DCmdFactory::factory(const char* name, size_t len) {

mercurial