comparison agent/src/share/classes/sun/jvm/hotspot/jdi/SADebugServer.java @ 3939:f6f3bb0ee072

7088955: add C2 IR support to the SA Reviewed-by: kvn
author never
date Sun, 11 Sep 2011 14:48:24 -0700
parents c18cbe5936b8
children 5a98bf7d847b
comparison
equal deleted inserted replaced
3938:e6b1331a51d2 3939:f6f3bb0ee072
1 /* 1 /*
2 * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
49 // Attempt to handle "-h" or "-help" 49 // Attempt to handle "-h" or "-help"
50 if (args[0].startsWith("-")) { 50 if (args[0].startsWith("-")) {
51 usage(); 51 usage();
52 } 52 }
53 53
54 // By default, SA agent classes prefer dbx debugger to proc debugger
55 // and Windows process debugger to windbg debugger. SA expects
56 // special properties to be set to choose other debuggers. For SA/JDI,
57 // we choose proc, windbg debuggers instead of the defaults.
58
59 System.setProperty("sun.jvm.hotspot.debugger.useProcDebugger", "true");
60 System.setProperty("sun.jvm.hotspot.debugger.useWindbgDebugger", "true");
61
62 // delegate to the actual SA debug server. 54 // delegate to the actual SA debug server.
63 sun.jvm.hotspot.DebugServer.main(args); 55 sun.jvm.hotspot.DebugServer.main(args);
64 } 56 }
65 } 57 }