From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 109A03851527; Fri, 28 Oct 2022 14:24:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 109A03851527 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666967066; bh=efkWCjwT+wkrKE5rBFKpjVQj1HmGmQ5+sCcvz1LQk8Y=; h=From:To:Subject:Date:From; b=rGrJrcIEzJPoTL8B5n+IUngTazPmHghU2hseghwRq891veIuxgust4YAjKhQVaaaZ LydHRNUkpZfwyqIokbW+OAhNnG7J5KuIckVb7iJsoJ9JHDpa3wekDilKnAGYoDrXba eveiih7BR5PWSI81uJOPtazN+BqfKqDBMA77s4X0= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: exceptions: print 48 bit addresses X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: eaa51ea459fc6b9847f35d6ac23cfdb5282c2991 X-Git-Newrev: b9e97f58aa4f0ed8449caed6e215b3d0cb629254 Message-Id: <20221028142426.109A03851527@sourceware.org> Date: Fri, 28 Oct 2022 14:24:26 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Db9e97f58aa4= f0ed8449caed6e215b3d0cb629254 commit b9e97f58aa4f0ed8449caed6e215b3d0cb629254 Author: Corinna Vinschen Date: Fri Oct 28 16:24:00 2022 +0200 Cygwin: exceptions: print 48 bit addresses =20 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. =20 Fixes: e1254add73b1 ("Cygwin: Allow accessing 48 bit address space in W= indows 8.1 or later") Signed-off-by: Corinna Vinschen 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 () =20 #ifdef __x86_64__ if (exception_name) - small_printf ("Exception: %s at rip=3D%011X\r\n", exception_name, ctx-= >Rip); + small_printf ("Exception: %s at rip=3D%012X\r\n", exception_name, ctx-= >Rip); else - small_printf ("Signal %d at rip=3D%011X\r\n", e->ExceptionCode, ctx->R= ip); + small_printf ("Signal %d at rip=3D%012X\r\n", e->ExceptionCode, ctx->R= ip); small_printf ("rax=3D%016X rbx=3D%016X rcx=3D%016X\r\n", ctx->Rax, ctx->Rbx, ctx->Rcx); small_printf ("rdx=3D%016X rsi=3D%016X rdi=3D%016X\r\n", @@ -345,10 +345,10 @@ cygwin_exception::dumpstack () small_printf ("Stack trace:\r\nFrame Function Args\r\n"); for (i =3D 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 =3D 0; j < NPARAMS; j++) - small_printf ("%s%011X", j =3D=3D 0 ? " (" : ", ", + small_printf ("%s%012X", j =3D=3D 0 ? " (" : ", ", thestack.sf.Params[j]); small_printf (")\r\n"); }