* sigproc.h (sigframe::set): Eliminate second argument. Default bp to current
frame pointer rather than using this within the function, which is unstable when this method is not inlined. * net.cc: Eliminate use of second argument to sigframe.set throughout. * select.cc (cygwin_select): Ditto. * sigproc.cc (sig_send): Ditto.
This commit is contained in:
@@ -49,15 +49,11 @@ private:
|
||||
sigthread *st;
|
||||
|
||||
public:
|
||||
void set (sigthread &t, int up = 1, DWORD ebp = 0)
|
||||
void set (sigthread &t, DWORD ebp = (DWORD) __builtin_frame_address (0))
|
||||
{
|
||||
t.lock->acquire ();
|
||||
st = &t;
|
||||
if (ebp)
|
||||
t.frame = ebp;
|
||||
else
|
||||
t.frame = (DWORD) (up ? __builtin_frame_address (1) :
|
||||
__builtin_frame_address (0));
|
||||
t.frame = ebp;
|
||||
t.lock->release ();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user