diff options
author | Christopher Faylor <me@cgf.cx> | 2000-05-07 07:29:08 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-05-07 07:29:08 +0400 |
commit | eafa31fb9f26f56fd8ed8a4cb5d55f5968c15599 (patch) | |
tree | ab18b8388b456c7fe5a265a90e32ad0c1ff3c77a /winsup/cygwin/exceptions.cc | |
parent | 75546193ec47c939c7356f6fd8cda54ec58b423f (diff) |
* dcrt0.cc (insert_file): Eliminate unused parameter.
(build_argv): Ditto.
* exceptions.cc (stack): Eliminate unused parameters.
(stackdump): Ditto.
(cygwin_stackdump): Reflect above changes.
(sig_handle): Ditto.
* fhandler.cc (fhandler_base::set_inheritance): Use kludge to avoid unused
parameter warning.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index dea040659..4720d8e6e 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -269,9 +269,9 @@ stack_info::walk () return 1; } -/* Dump the stack using either the old method or the new Win32 API method */ +/* Dump the stack */ void -stack (HANDLE hproc, HANDLE hthread, CONTEXT *cx) +stack (CONTEXT *cx) { int i; @@ -295,10 +295,8 @@ cygwin_stackdump() { CONTEXT c; c.ContextFlags = CONTEXT_FULL; - HANDLE h1 = GetCurrentProcess (); - HANDLE h2 = GetCurrentThread (); - GetThreadContext (h2, &c); - stack(h1, h2, &c); + GetThreadContext (GetCurrentThread (), &c); + stack(&c); } static int NO_COPY keep_looping = 0; @@ -360,7 +358,7 @@ try_to_debug () } void -stackdump (HANDLE hproc, HANDLE hthread, EXCEPTION_RECORD *e, CONTEXT *in) +stackdump (EXCEPTION_RECORD *e, CONTEXT *in) { char *p; if (myself->progname[0]) @@ -382,7 +380,7 @@ stackdump (HANDLE hproc, HANDLE hthread, EXCEPTION_RECORD *e, CONTEXT *in) } if (e) exception (e, in); - stack (hproc, hthread, in); + stack (in); } /* Main exception handler. */ @@ -487,7 +485,7 @@ handle_exceptions (EXCEPTION_RECORD *e, void *, CONTEXT *in, void *) HANDLE hthread; DuplicateHandle (hMainProc, GetCurrentThread (), hMainProc, &hthread, 0, FALSE, DUPLICATE_SAME_ACCESS); - stackdump (hMainProc, hthread, e, in); + stackdump (e, in); } try_to_debug (); really_exit (EXIT_SIGNAL | sig); @@ -925,7 +923,7 @@ done: exit_sig: if (sig == SIGQUIT || sig == SIGABRT) { - stackdump (NULL, NULL, NULL, NULL); + stackdump (NULL, NULL); try_to_debug (); } sigproc_printf ("signal %d, about to call do_exit", sig); |