diff options
author | Mark Geisert <mark@maxrnd.com> | 2018-01-24 00:34:23 -0800 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-01-24 10:57:12 +0100 |
commit | 29af5b27cf6a5222670ca910102e0f25406691ad (patch) | |
tree | 4950b078e145eb180cb1e41113ed99a3dd3a9e35 /winsup/cygwin/exceptions.cc | |
parent | c17b0f00820c6c5187944800b6b4c3b83fe71293 (diff) | |
download | newlib-29af5b27cf6a5222670ca910102e0f25406691ad.zip newlib-29af5b27cf6a5222670ca910102e0f25406691ad.tar.gz newlib-29af5b27cf6a5222670ca910102e0f25406691ad.tar.bz2 |
Define internal function mythreadname() -- revised
This new function returns the name of the calling thread; works for both
cygthreads and pthreads. All calls to cygthread::name(/*void*/) replaced
by calls to mythreadname(/*void*/).
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 47782e4..f659540 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -200,7 +200,7 @@ cygwin_exception::dump_exception () small_printf ("r14=%016X r15=%016X\r\n", ctx->R14, ctx->R15); small_printf ("rbp=%016X rsp=%016X\r\n", ctx->Rbp, ctx->Rsp); small_printf ("program=%W, pid %u, thread %s\r\n", - myself->progname, myself->pid, cygthread::name ()); + myself->progname, myself->pid, mythreadname ()); #else if (exception_name) small_printf ("Exception: %s at eip=%08x\r\n", exception_name, ctx->Eip); @@ -210,7 +210,7 @@ cygwin_exception::dump_exception () ctx->Eax, ctx->Ebx, ctx->Ecx, ctx->Edx, ctx->Esi, ctx->Edi); small_printf ("ebp=%08x esp=%08x program=%W, pid %u, thread %s\r\n", ctx->Ebp, ctx->Esp, myself->progname, myself->pid, - cygthread::name ()); + mythreadname ()); #endif small_printf ("cs=%04x ds=%04x es=%04x fs=%04x gs=%04x ss=%04x\r\n", ctx->SegCs, ctx->SegDs, ctx->SegEs, ctx->SegFs, |