From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77164 invoked by alias); 8 Nov 2019 09:23:53 -0000 Mailing-List: contact cygwin-cvs-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-cvs-owner@cygwin.com Received: (qmail 77116 invoked by uid 9078); 8 Nov 2019 09:23:53 -0000 Date: Fri, 08 Nov 2019 09:23:00 -0000 Message-ID: <20191108092353.77114.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: Raise dumpstack frame limit to 32 X-Act-Checkin: newlib-cygwin X-Git-Author: Mark Geisert X-Git-Refname: refs/heads/master X-Git-Oldrev: 3880efb28390fe52e03de82b3b1e817a35b62577 X-Git-Newrev: 7c9c94b9c8af34152d18cf2264e5c723e9e61ab7 X-SW-Source: 2019-q4/txt/msg00025.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7c9c94b9c8af34152d18cf2264e5c723e9e61ab7 commit 7c9c94b9c8af34152d18cf2264e5c723e9e61ab7 Author: Mark Geisert Date: Thu Nov 7 16:13:34 2019 -0800 Cygwin: Raise dumpstack frame limit to 32 Create a #define for the limit and raise it from 16 to 32. Diff: --- winsup/cygwin/exceptions.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 132fea4..3e7d727 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -42,6 +42,7 @@ details. */ #define CALL_HANDLER_RETRY_OUTER 10 #define CALL_HANDLER_RETRY_INNER 10 +#define DUMPSTACK_FRAME_LIMIT 32 PWCHAR debugger_command; extern uint8_t _sigbe; @@ -382,7 +383,7 @@ cygwin_exception::dumpstack () #else small_printf ("Stack trace:\r\nFrame Function Args\r\n"); #endif - for (i = 0; i < 16 && thestack++; i++) + for (i = 0; i < DUMPSTACK_FRAME_LIMIT && thestack++; i++) { small_printf (_AFMT " " _AFMT, thestack.sf.AddrFrame.Offset, thestack.sf.AddrPC.Offset); @@ -392,7 +393,8 @@ cygwin_exception::dumpstack () small_printf (")\r\n"); } small_printf ("End of stack trace%s\n", - i == 16 ? " (more stack frames may be present)" : ""); + i == DUMPSTACK_FRAME_LIMIT ? + " (more stack frames may be present)" : ""); if (h) NtClose (h); }