patchDotGNU Portable.NET - Patches: patch #7295, LibJit: Added support for windows...


You are not allowed to post comments on this tracker with your current authentication level.

patch #7295: LibJit: Added support for windows 64-bit callstack info

Submitted by:  Patrick van Beem <pvbeem>
Submitted on:  Tue 31 Aug 2010 07:36:18 AM UTC  
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Tue 31 Aug 2010 07:36:18 AM UTC, original submission:  

Added code do generate and request windows structures that describe the function and it's prolog. This unwind information is used by windows to unwind the stack when it has to generate a call stack (in case of an exception or in the debugger).
This can be used like:

  PRUNTIME_FUNCTION pruntimefunction;
  DWORD64           baseaddress;

  if ( jit_function_compile(func) && jit_get_function_boundaries(func, (void**)&pruntimefunction, (void**)&baseaddress))
    RtlAddFunctionTable(pruntimefunction, 1, baseaddress);

and when you free the function:

Note that at leas Visual Studio 2005 does not use this information to show the correct call stack in the debugger. WinDbg and Visual Studio 2010 do (did not try 2008).

Patrick van Beem <pvbeem>


Attached Files
file #21357: added by pvbeem (42KiB - application/zip - The patch and files are based on the version with my previous patch installed.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by pvbeem (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-31 pvbeem Attached File- => Added, #21357

    Back to the top

    Powered by Savane 3.5