* 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:
Christopher Faylor
2000-09-08 03:12:13 +00:00
parent f0338f545d
commit 3b0d65eab9
5 changed files with 23 additions and 18 deletions

View File

@@ -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 ();
}