This is an archive of the discontinued LLVM Phabricator instance.

Fix JITLoaderGDB for 64-bit host and 32-bit target
ClosedPublic

Authored by endlessroad on Sep 12 2014, 12:19 PM.

Details

Summary

There are target pointer members in struct jit_code_entry and jit_descriptor.

Data layout of those structures should be decided by target, not host.

This fixes JITLoaderGDB for 64-bit host and 32-bit target

Diff Detail

Event Timeline

endlessroad retitled this revision from to Fix JITLoaderGDB for 64-bit host and 32-bit target.
endlessroad updated this object.
endlessroad edited the test plan for this revision. (Show Details)
endlessroad added reviewers: tfiala, jasonmolenda.
endlessroad added a subscriber: Unknown Object (MLST).
jasonmolenda edited edge metadata.Sep 12 2014, 2:57 PM

I think this is Keno Fischer's code.

tfiala edited edge metadata.Sep 12 2014, 3:11 PM

Adding Keno...

I think this is Keno Fischer's code.

Ahh, indeed. Did a Google search and found http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140303/010630.html
Thanks Jason!

loladiro accepted this revision.Sep 12 2014, 4:43 PM
loladiro edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Sep 12 2014, 4:43 PM
tfiala accepted this revision.Sep 15 2014, 1:04 PM
tfiala closed this revision.
tfiala edited edge metadata.

svn commit
Sending source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
Sending source/Plugins/JITLoader/GDB/JITLoaderGDB.h
Transmitting file data ..
Committed revision 217816.

In D5339#11, @tfiala wrote:

svn commit
Sending source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
Sending source/Plugins/JITLoader/GDB/JITLoaderGDB.h
Transmitting file data ..
Committed revision 217816.

Thanks Todd!