This is an archive of the discontinued LLVM Phabricator instance.

Introduced SysV ABI support for i386 Architecture
ClosedPublic

Authored by abhishek.aggarwal on Jun 8 2015, 5:05 AM.

Details

Summary
  • Executables compiled for i386 architecture can now be debugged both locally and remotely
  • Additional effort is required to complete the implementation e.g. SetReturnValueObject is yet to be implemented

Change-Id: I6c7d42c90b58215956ab8ca7c31f3cbc678af12b
Signed-off-by: Abhishek Aggarwal <abhishek.a.aggarwal@intel.com>

Diff Detail

Event Timeline

abhishek.aggarwal retitled this revision from to Introduced SysV ABI support for i386 Architecture.
abhishek.aggarwal updated this object.
abhishek.aggarwal edited the test plan for this revision. (Show Details)
abhishek.aggarwal added a subscriber: Unknown Object (MLST).Jun 8 2015, 5:37 AM
tberghammer added inline comments.Jun 8 2015, 10:23 AM
source/Plugins/ABI/SysV-i386/ABISysV_i386.cpp
428–430

Please return an error. (Empty error object means everything was fine)

source/Plugins/ABI/SysV-i386/ABISysV_i386.h
30–31

Please remove the virtual and add override for all function where applicable

Please change file modes back to 644.

Follow up on comments :

  • Return Error with an ErrorString in SetReturnValueObject() function
  • In ABISysV_i386.h:
    • Changed virtual to override keyword wherever applicable
    • Made some functions inlined in header file
  • Changed mode of files to 644
  • Changes NULL to nullptr in ABISysV_i386.cpp
clayborg accepted this revision.Jun 15 2015, 3:11 PM
clayborg edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Jun 15 2015, 3:11 PM

I don't have merge rights. Can anyone please merge this change if everything looks good ?

clayborg closed this revision.Jun 25 2015, 10:50 AM

% svn commit
Sending cmake/LLDBDependencies.cmake
Sending lib/Makefile
Sending lldb.xcodeproj/project.pbxproj
Sending source/API/SystemInitializerFull.cpp
Sending source/Plugins/ABI/CMakeLists.txt
Adding source/Plugins/ABI/SysV-i386
Adding source/Plugins/ABI/SysV-i386/ABISysV_i386.cpp
Adding source/Plugins/ABI/SysV-i386/ABISysV_i386.h
Adding source/Plugins/ABI/SysV-i386/CMakeLists.txt
Adding source/Plugins/ABI/SysV-i386/Makefile
Sending source/Plugins/Makefile
Transmitting file data ..........
Committed revision 240663.