views:

387

answers:

2

I wish to debug executables for which I have no code, using the Delphi Debugger.

WinDBG and other debuggers are no option in this case, as the given executables all call into my DLL, for which I do have code, obviously. My ultimate goal is, to see a stack-trace right down into the functions of the running executable.

I do have symbol-information for these executables, so I was hoping I could write my own .RSM files for this purpose. Will this work? Will the Delphi debugger pick up any .RSM file that it can find? And would that mean that other debug-information should be left out?

Do note that there are lots of executables that I need to debug, and for all of them I detect the symbols inside them myself, using a moderately advanced function-detection algorithm. So my main problem mainly is how to write .RSM files. For this I have to know the structure of the .RSM file-format. Is there documentation or example code available somewhere that shows me how to create such a file?

Any help is appreciated!

PS: Might you be wondering why I'm doing all this : It's all related to Dxbx - an open-source Xbox1 emulator. See sourceforce for details. New members are welcome!

A: 

Check this url, which mentions creating a rsm file for Delphi.

No'am Newman
Thanks for googling this up - I found that myself too. The thing is, I want to know how I can write such a .RSM file myself, what format it has, etc. It seems a bit of reverse-engineering is in order, I'm afraid....
PatrickvL
+1  A: 

I found a page that says the format is similar to CodeView (www.openwatcom.org/index.php/Debugging_Format_Interoperability)

There is a link to this reference at http://stackoverflow.com/questions/1418660/microsofts-codeview-format-specs

I doubt this fully answers your question, but maybe it will get you a little further?

natevw
I assume this is as close to an answer as I'll ever get ;-) Thanks for your attention.
PatrickvL