-
Notifications
You must be signed in to change notification settings - Fork 738
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
DDR: add support for OSX core files #5127
Conversation
Please fix the copyright check problems |
jenkins test sanity osx jdk11 |
4fb048b
to
50043ca
Compare
jenkins test extended osx jdk11 - this passed |
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 fix formatting inconsistencies:
- all indents should be with tabs, not spaces
- opening braces not on a separate line
- no trailing whitespace
debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/macho/BuildVersionCommand.java
Outdated
Show resolved
Hide resolved
@mikezhang1234567890 please try signing the eca again, it has worked for others today. |
50043ca
to
50d68fd
Compare
@keithc-ca Can you review this again? It looks like Mike has updated it |
Looking at this now. |
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.
It can wait for a future pull request, but I think the LoadCommand
class hierarchy ought to be constructed from the input rather than via a call to readCommand()
. That will allow many of the fields of those classes to be final.
debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/macho/MachoDumpReader.java
Outdated
Show resolved
Hide resolved
debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/macho/MachoDumpReader.java
Outdated
Show resolved
Hide resolved
debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/macho/MachoDumpReader.java
Outdated
Show resolved
Hide resolved
debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/macho/MachoDumpReader.java
Outdated
Show resolved
Hide resolved
getBytesAt(nameAddress, stringBuffer); | ||
|
||
try { | ||
return new String(stringBuffer, "ASCII"); |
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.
If you use StandardCharsets.ASCII
you wan't have to catch UnsupportedEncodingException
.
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 also fix LoadCommand
and SymtabCommand
.
debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/macho/SourceVersionCommand.java
Outdated
Show resolved
Hide resolved
debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/macho/ThreadCommand.java
Outdated
Show resolved
Hide resolved
debugtools/DDR_VM/src/com/ibm/j9ddr/vm29/tools/ddrinteractive/VMRegMapHelper.java
Outdated
Show resolved
Hide resolved
50d68fd
to
f98c57e
Compare
debugtools/DDR_VM/src/com/ibm/j9ddr/corereaders/macho/SourceVersionCommand.java
Outdated
Show resolved
Hide resolved
f98c57e
to
d7044d9
Compare
Added a core reader for reading OSX Mach-O core files. Parts of the core reader remain unimplemented, however enough is done so that DDR can be used on the OSX core files. Signed-off-by: Mike Zhang <mike.h.zhang@ibm.com>
Signed-off-by: Mike Zhang <mike.h.zhang@ibm.com>
d7044d9
to
a5611a5
Compare
} | ||
for (LoadCommand lc : dumpFile.otherLoads) { | ||
if (lc instanceof ThreadCommand) { | ||
dumpFile.threads = (ThreadCommand) lc; |
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 open an issue to improve this to handle core files with more than one thread.
Jenkins test extended osx,zlinux jdk11 |
Jenkins test sanity osx,zlinux jdk11 |
@keithc-ca approved and the testing has passed. |
@pshipton Thanks for merging. |
jdk8 DDR tests are failing
|
Maybe |
ibmruntimes/openj9-openjdk-jdk8#278 seems to have fixed jdmpview, but the two testDDRExt_* tests must not be using jdmpview and will need to be fixed separately. |
Added a core reader for reading OSX Mach-O core files.
Also re-enables DDR tests for OSX.
Resolves #3444, resolves #3366, resolves #3483
Signed-off-by: Mike Zhang mike.h.zhang@ibm.com