Subversion Repositories Kolibri OS

Rev

Rev 4383 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4383 Rev 4866
Line 80... Line 80...
80
      and set the return address based on the program counter (Eip).
80
      and set the return address based on the program counter (Eip).
Line 81... Line 81...
81
 
81
 
82
   Note that this implementation follows closely the same principles as the
82
   Note that this implementation follows closely the same principles as the
Line 83... Line 83...
83
   GNU/Linux and OSF ones.  */
83
   GNU/Linux and OSF ones.  */
84
 
84
 
85
#define WIN32_MEAN_AND_LEAN
85
//#define WIN32_MEAN_AND_LEAN
Line 86... Line 86...
86
#include 
86
//#include 
Line 87... Line 87...
87
/* Patterns found experimentally to be on a Windows signal handler  */
87
/* Patterns found experimentally to be on a Windows signal handler  */
Line 121... Line 121...
121
static _Unwind_Reason_Code
121
static _Unwind_Reason_Code
122
i386_w32_fallback_frame_state (struct _Unwind_Context *context, 
122
i386_w32_fallback_frame_state (struct _Unwind_Context *context,
123
			       _Unwind_FrameState *fs)
123
			       _Unwind_FrameState *fs)
Line 124... Line 124...
124
 
124
 
-
 
125
{
125
{
126
#if 0
126
  void * ctx_ra_  = (void *)(context->ra);  /* return address */
127
  void * ctx_ra_  = (void *)(context->ra);  /* return address */
127
  void * ctx_cfa_ = (void *)(context->cfa); /* context frame address */
128
  void * ctx_cfa_ = (void *)(context->cfa); /* context frame address */
Line 128... Line 129...
128
  unsigned char * pc_ = (unsigned char *) ctx_ra_;
129
  unsigned char * pc_ = (unsigned char *) ctx_ra_;
Line 207... Line 208...
207
 
208
 
208
      return _URC_NO_REASON;
209
      return _URC_NO_REASON;
209
    }
210
    }
210
  else
211
  else
-
 
212
    return _URC_END_OF_STACK;
-
 
213
#endif
-
 
214
 
211
    return _URC_END_OF_STACK;
215
    return _URC_NO_REASON;