From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id E2E2E38582A1; Sat, 29 Oct 2022 17:34:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2E2E38582A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667064871; bh=kOiAczBuTQv3kzrWO6yETyX497bXUiBoXGKZLuxTuZY=; h=From:To:Subject:Date:From; b=DkP+mxwVVqtR3qQI0CfS6W1zVOCdIYEoeaLML07LItJWqSA5fbSdfbAI8hYUm/TK7 ai4AEdJiMYExqaJRAMFSzoysHqLJMMGLXTw1VfoFor8GY+PYFwybiFSqzwz20uSKsk eTOc/DHqWOwHWgHzdecEix6CvEO8IR8+u9vPTPhI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon TURNEY To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: Tidy up formatting of stackdump X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: 3e80956d63eb26c40d05ecc44990b157a44db99a X-Git-Newrev: 4a67f89ced019f540714964ece4374a6f5e112d8 Message-Id: <20221029173431.E2E2E38582A1@sourceware.org> Date: Sat, 29 Oct 2022 17:34:31 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D4a67f89ced0= 19f540714964ece4374a6f5e112d8 commit 4a67f89ced019f540714964ece4374a6f5e112d8 Author: Jon Turney Date: Fri Oct 28 13:43:54 2022 +0100 Cygwin: Tidy up formatting of stackdump =20 Resize stackdump headers for b9e97f58 Consistently use \r\n line endings Diff: --- winsup/cygwin/exceptions.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index e6f868511..a15bc16c5 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -342,7 +342,7 @@ cygwin_exception::dumpstack () int i; =20 thestack.init (framep, 1, ctx); /* Initialize from the input CONTEXT= */ - small_printf ("Stack trace:\r\nFrame Function Args\r\n"); + small_printf ("Stack trace:\r\nFrame Function Args\r\n"= ); for (i =3D 0; i < DUMPSTACK_FRAME_LIMIT && thestack++; i++) { small_printf ("%012X %012X", thestack.sf.AddrFrame.Offset, @@ -352,9 +352,9 @@ cygwin_exception::dumpstack () thestack.sf.Params[j]); small_printf (")\r\n"); } - small_printf ("End of stack trace%s\n", + small_printf ("End of stack trace%s\r\n", i =3D=3D DUMPSTACK_FRAME_LIMIT ? - " (more stack frames may be present)" : ""); + " (more stack frames may be present)" : ""); if (h) NtClose (h); }