-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception exit support #91
base: master
Are you sure you want to change the base?
Changes from 22 commits
dece759
64f2bd3
bdb64d0
91fe6e5
e839f68
57e3338
85bda2f
832a572
4d26244
32b43ff
809c7a3
e9def80
d982c93
c344ace
49eb2d7
a5bef21
491ff39
f4d90c4
c35be22
907f505
9477798
a60986d
251de7d
bb75d9b
cfa8943
feb20e5
e8cc02e
8c461ec
29c06b6
bce5892
82061a1
e7f147d
2ec156a
51ed8c4
5662498
f3e6bdc
a6879b7
118ebb0
1101880
a5d33eb
133f01f
177c11a
d28c06f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
ABI | ||
accessor | ||
accessors | ||
acyclic | ||
ADDR | ||
AFS | ||
AMD | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,9 @@ public class Chicory { | |
@Option("Number of calls after which sampling will begin") | ||
public static int sample_start = 0; | ||
|
||
@Option("Enable remote debug") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a Javadoc comment, explaining what this does or how to use it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was added and used by Philipp Hirch. I do not know how to use it. Should I comment out or just delete? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not a new change -- it already existed, and he just moved it to be a command-line option. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see that now and presumably his changes made it work (better?). I get the jist of what this does and I think all the debug arguments are just magic. I will write up something. |
||
public static boolean remote_debug = false; | ||
|
||
/** Daikon port number. Daikon writes this to stdout when it is started in online mode. */ | ||
private static int daikon_port = -1; | ||
|
||
|
@@ -152,8 +155,6 @@ public class Chicory { | |
/** flag to use if we want to turn on the static initialization checks */ | ||
public static final boolean checkStaticInit = true; | ||
|
||
private static final boolean RemoteDebug = false; | ||
|
||
/** Flag to initiate a purity analysis and use results to create add vars */ | ||
private static boolean purityAnalysis = false; | ||
|
||
|
@@ -376,9 +377,10 @@ void start_target(String premain_args, String[] target_args) { | |
List<String> cmdlist = new ArrayList<String>(); | ||
cmdlist.add("java"); | ||
|
||
if (RemoteDebug) { | ||
if (remote_debug) { | ||
// -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n | ||
cmdlist.add("-Xdebug -Xrunjdwp:server=n,transport=dt_socket,address=8000,suspend=y"); | ||
cmdlist.add("-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y"); | ||
// cmdlist.add("-Xdebug -Xrunjdwp:server=n,transport=dt_socket,address=8000,suspend=y"); | ||
// cmdlist.add("-Xdebug -Xnoagent | ||
// -Xrunjdwp:transport=dt_socket,server=n,suspend=n,address=8000 -Djava.compiler=NONE"); | ||
} | ||
|
@@ -498,6 +500,11 @@ public void runDaikon() { | |
heap_size, cp, daikon_args, output_dir, dtrace_file); | ||
} | ||
|
||
if (remote_debug) { | ||
cmdstr = | ||
cmdstr.replace( | ||
"java", "java -agentlib:jdwp=transport=dt_socket,server=y,address=8001,suspend=y"); | ||
} | ||
// System.out.println("daikon command is " + daikon_cmd); | ||
// System.out.println("daikon command cmdstr " + cmdstr); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't refill paragraphs (that is, don't remove line breaks). It makes the diffs bigger and harder to read.