test/hotspot/jtreg/vmTestbase/nsk/jdb/use/use001/use001a.java
author iignatyev
Tue, 22 May 2018 10:08:04 -0700
changeset 50220 31361382634b
permissions -rw-r--r--
8199379: [TESTBUG] Open source vm testbase JDB tests Reviewed-by: mseledtsov, sspitsyn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50220
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     1
/*
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     2
 * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     4
 *
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     7
 * published by the Free Software Foundation.
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     8
 *
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    13
 * accompanied this code).
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    14
 *
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    18
 *
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    21
 * questions.
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    22
 */
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    23
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    24
package nsk.jdb.use.use001;
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    25
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    26
import nsk.share.*;
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    27
import nsk.share.jpda.*;
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    28
import nsk.share.jdb.*;
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    29
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    30
import java.io.*;
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    31
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    32
/* This is debuggee aplication */
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    33
public class use001a {
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    34
    static use001a _use001a = new use001a();
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    35
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    36
    public static void main(String args[]) {
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    37
       System.exit(use001.JCK_STATUS_BASE + _use001a.runIt(args, System.out));
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    38
    }
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    39
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    40
//    static void lastBreak () {}
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    41
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    42
    public int runIt(String args[], PrintStream out) {
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    43
        JdbArgumentHandler argumentHandler = new JdbArgumentHandler(args);
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    44
        Log log = new Log(out, argumentHandler);
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    45
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    46
//        lastBreak();
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    47
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    48
        log.display("Debuggee PASSED");
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    49
        return use001.PASSED;
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    50
    }
31361382634b 8199379: [TESTBUG] Open source vm testbase JDB tests
iignatyev
parents:
diff changeset
    51
}