forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help Please...lost all cpp files...how to decompile from .o?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
anmabagima



Joined: 01 Oct 2009
Posts: 96

PostPosted: Wed Dec 30, 2009 1:47 am    Post subject: Help Please...lost all cpp files...how to decompile from .o? Reply with quote

Hi there,

unfortunately I've deleted all my cpp source file of my current project due to a mistake in my make file. My DataRecovery file was unable to detect them. As there is currently no elf or PRX file available, but compiled .o files, is there a way to "decompile" these file to get the possebility to restore the source ?

Any help is much appricieated. Google does return many results, and I hope some one of you guys can point me to the best tool/how to guide..

Many thanks in advance
AnMaBaGiMa
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Wed Dec 30, 2009 6:51 am    Post subject: Reply with quote

Unfortunately you're pretty much stuffed. The very best you can hope for is assembler code annotated with any debug symbols that happen to be in your .o files.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
anmabagima



Joined: 01 Oct 2009
Posts: 96

PostPosted: Wed Dec 30, 2009 11:50 pm    Post subject: Reply with quote

Hi,
thanks. I havn't expected to recieve full source code. Some assembler may be enough unless it would be possible to see which methods or functions they are located in (debug info).

Any tools known ? pspdecompile needs an ELF, but i've only the .o-files
Back to top
View user's profile Send private message
Mon Ouïe



Joined: 05 Jul 2009
Posts: 36

PostPosted: Thu Dec 31, 2009 12:14 am    Post subject: Reply with quote

If you have all the *.o files, you can build the ELF easily; you could also use psp-objdump.
Back to top
View user's profile Send private message
anmabagima



Joined: 01 Oct 2009
Posts: 96

PostPosted: Sat Jan 02, 2010 4:34 am    Post subject: Reply with quote

Hi,

thanks. I've tried this out, but it seem to be much more easy to start from scratch as it may take me more time to convert the asm code back to readable c/c++ code ;o)

Meanwhile: happy new year ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group