Cygwin: Tidy up formatting of stackdump
authorJon Turney <jon.turney@dronecode.org.uk>
Fri, 28 Oct 2022 12:43:54 +0000 (13:43 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Fri, 28 Oct 2022 15:03:36 +0000 (16:03 +0100)
Resize stackdump headers for b9e97f58
Consistently use \r\n line endings

winsup/cygwin/exceptions.cc

index e6f868511fa9a8309d19c5268ff9501bf549114a..a15bc16c5d9702cc74359d69bfcd496fb22dc714 100644 (file)
@@ -342,7 +342,7 @@ cygwin_exception::dumpstack ()
       int i;
 
       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 = 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 == DUMPSTACK_FRAME_LIMIT ?
-                       " (more stack frames may be present)" : "");
+                   " (more stack frames may be present)" : "");
       if (h)
        NtClose (h);
     }
This page took 0.084091 seconds and 5 git commands to generate.