samedi 22 mars 2014

Eclipse CDT - using objdump in Windows


Vote count:

0




The Eclipse CDT Binary Parser 'GNU Elf Parser' is having trouble on my Eclipse install on Windows.



  • All works fine on linux install


Problem


I have a compiled ELF in the GNU ELF 32 format. When I attempt to view this with the GNU Elf Parser, I get:



java.io.IOException: Cannot run program "objdump": Launching failed
at org.eclipse.cdt.utils.spawner.Spawner.exec(Spawner.java:347)
...
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)


Deubg


Of course, this just means the CDT-plugins can't find objdump.




  • The ELF tested opens correctly in a linux-eclipse-cdt install




  • Say my objdump is located at 'C:\binutils\bin'



  • How the heck do you setup Eclipse's CLASSPATH to search there?


I've tried several things, from editing my system PATH, or CLASSPATH. I've also tried setting Workspace & C/C++ Build/Env settings. Nothing has worked.


Question


How the heck do you get this to work?



asked 4 mins ago






Aucun commentaire:

Enregistrer un commentaire