Jump to content
XCOMUFO & Xenocide

PRG- Stack Walking


red knight

Recommended Posts

Hi all.

Well I had a talk with my NetworkLib partner about how to implement the Stack Walking. Cause I already know how to implement that for Microsoft Visual C++ but not for Borland C++ Builder. After a detailed discussion with my Friend (Marcman in this forums - he dont post too much-) we thought about get the information from the MAP file, compile it into our own database with only the things that we need and then code our own stack walking routine with the help of the StackWalk call from the Win32 SDK.... ( Quite flexible but lots of work ).

Looking into the internet for that I found that there is already an app that convert .map files into .dbg files (MAPs are from Borland and DBGs for VC++ ). So either we use the map2dbg code to understand and write our own database of needed information for realtime debugging (that would be pretty cool, cause we can have an interesting and flexible application to get debug information) OR we can convert .map files into .dbg and package that into the alpha's and use the standard Microsoft Code to read it..... (already have code for that) we will only need to rewrite it to make it clean, cause it is not my code, but it is easier with an example to base your work on...

[b]Now my recomendation:[/b] The first option is pretty interesting and it can be pretty useful (more than the second one), however it is too much work to do it and we need that [b]QA Tool ASAP[/b] (read: [b]High Priority[/b]). So I recommend to do that first and then someone (with good understanding of the Win32 API) could start coding the other approach to have something more flexible and compact (dbg files are pretty big and they have a lot of unneeded things).

[b]Resources:[/b]
[url="http://www.mvps.org/win32/misc/stackwalk.html"]VC++ StackWalk Application Source Code[/url]
[url="http://www.wischik.com/lu/programmer/"]Where you can download callstack and map2dbg with Source Code (ms-dbg-zip)[/url]
[url="http://delphi.icm.edu.pl/ftp/tools/ms-dbg.txt"]Explanation about Callstack and map2dbg[/url]

[b]I need someone willing to do the first approach ASAP... [/b]

Any comments post them in here as always...

Greetings
Red Knight Edited by red knight
Link to comment
Share on other sites

Is this for when you get a crash or something and you want to see all the methods that are called at the time of the crash.

Or is this for navigating the big friggin data file (paq file?)

Or something else?
Link to comment
Share on other sites

So the IDE doesn't have a dump feature? As I recall in things like Dev Studio and Codewarrior that's just a click away.

Or is it there but Xenocide is spitting out stacks 3000 calls deep.
Link to comment
Share on other sites

IDEs have that, that is for the users machine. They play Xenocide and if it crash they issue a Bug Report with all that information made into a txt or special archive format for us to check... All automaticly using our tool... Misndstormmaster so far has collected lots of information from the DirectX interface like Video Hardware, Drivers Release, etc...

Greetings
Red Knight
Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...