public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: exceptions: print 48 bit addresses Date: Fri, 28 Oct 2022 14:24:26 +0000 (GMT) [thread overview] Message-ID: <20221028142426.109A03851527@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b9e97f58aa4f0ed8449caed6e215b3d0cb629254 commit b9e97f58aa4f0ed8449caed6e215b3d0cb629254 Author: Corinna Vinschen <corinna@vinschen.de> Date: Fri Oct 28 16:24:00 2022 +0200 Cygwin: exceptions: print 48 bit addresses Exception handling was *still* printing addresses as 44 bit values, but Windows supports a 48 bit virtual address space since Windows 8.1. Fix that. Fixes: e1254add73b1 ("Cygwin: Allow accessing 48 bit address space in Windows 8.1 or later") Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/exceptions.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 1c59b1597..e6f868511 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -195,9 +195,9 @@ cygwin_exception::dump_exception () #ifdef __x86_64__ if (exception_name) - small_printf ("Exception: %s at rip=%011X\r\n", exception_name, ctx->Rip); + small_printf ("Exception: %s at rip=%012X\r\n", exception_name, ctx->Rip); else - small_printf ("Signal %d at rip=%011X\r\n", e->ExceptionCode, ctx->Rip); + small_printf ("Signal %d at rip=%012X\r\n", e->ExceptionCode, ctx->Rip); small_printf ("rax=%016X rbx=%016X rcx=%016X\r\n", ctx->Rax, ctx->Rbx, ctx->Rcx); small_printf ("rdx=%016X rsi=%016X rdi=%016X\r\n", @@ -345,10 +345,10 @@ cygwin_exception::dumpstack () small_printf ("Stack trace:\r\nFrame Function Args\r\n"); for (i = 0; i < DUMPSTACK_FRAME_LIMIT && thestack++; i++) { - small_printf ("%011X %011X", thestack.sf.AddrFrame.Offset, + small_printf ("%012X %012X", thestack.sf.AddrFrame.Offset, thestack.sf.AddrPC.Offset); for (unsigned j = 0; j < NPARAMS; j++) - small_printf ("%s%011X", j == 0 ? " (" : ", ", + small_printf ("%s%012X", j == 0 ? " (" : ", ", thestack.sf.Params[j]); small_printf (")\r\n"); }
reply other threads:[~2022-10-28 14:24 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221028142426.109A03851527@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).