Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/jdi/SADebugServer.java @ 6782:5a98bf7d847b
6879063: SA should use hsdis for disassembly
Summary: We should in SA to use hsdis for it like the JVM does to replace the current java based disassembler.
Reviewed-by: twisti, jrose, sla
Contributed-by: yumin.qi@oracle.com
author | minqi |
---|---|
date | Mon, 24 Sep 2012 12:44:00 -0700 |
parents | f6f3bb0ee072 |
children |
comparison
equal
deleted
inserted
replaced
6780:8440414b0fd8 | 6782:5a98bf7d847b |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2012, 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 Windows process debugger | |
55 // to windbg debugger. SA expects special properties to be set | |
56 // to choose other debuggers. We will set those here before | |
57 // attaching to SA agent. | |
58 | |
59 System.setProperty("sun.jvm.hotspot.debugger.useWindbgDebugger", "true"); | |
60 | |
54 // delegate to the actual SA debug server. | 61 // delegate to the actual SA debug server. |
55 sun.jvm.hotspot.DebugServer.main(args); | 62 sun.jvm.hotspot.DebugServer.main(args); |
56 } | 63 } |
57 } | 64 } |