diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-08 03:12:13 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-08 03:12:13 +0000 |
commit | 3b0d65eab953cb982db4015125d45e6b2ae32857 (patch) | |
tree | 0ff3cdf06c2e132690a7d7946617017342347a60 /winsup/cygwin/sigproc.h | |
parent | f0338f545d769143f542338b4d61f771b5a87f93 (diff) | |
download | newlib-3b0d65eab953cb982db4015125d45e6b2ae32857.zip newlib-3b0d65eab953cb982db4015125d45e6b2ae32857.tar.gz newlib-3b0d65eab953cb982db4015125d45e6b2ae32857.tar.bz2 |
* 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.
Diffstat (limited to 'winsup/cygwin/sigproc.h')
-rw-r--r-- | winsup/cygwin/sigproc.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h index c863402..915e54a 100644 --- a/winsup/cygwin/sigproc.h +++ b/winsup/cygwin/sigproc.h @@ -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 (); } |