Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/agent/src/share/classes/sun/jvm/hotspot/jdi/SADebugServer.java Thu Sep 20 03:49:15 2012 -0700 +++ b/agent/src/share/classes/sun/jvm/hotspot/jdi/SADebugServer.java Mon Sep 24 12:44:00 2012 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -51,6 +51,13 @@ usage(); } + // By default SA agent classes prefer Windows process debugger + // to windbg debugger. SA expects special properties to be set + // to choose other debuggers. We will set those here before + // attaching to SA agent. + + System.setProperty("sun.jvm.hotspot.debugger.useWindbgDebugger", "true"); + // delegate to the actual SA debug server. sun.jvm.hotspot.DebugServer.main(args); }