From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CDF6F386FC1E; Fri, 14 May 2021 07:46:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDF6F386FC1E From: "stanislav.simek at siemens dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99649] GDB has issue to show backtrace if the breakpoint is in a function with more then 8 parameters - only for target aarch64-elf ILP32 Date: Fri, 14 May 2021 07:46:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stanislav.simek at siemens dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 07:46:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99649 --- Comment #7 from Stanislav =C5=A0imek --- (In reply to Richard Biener from comment #3) > It sounds like this should be a bug for gdb. Hi all, I would like to add more information for this topic: This error occurs in case that your function, call the function that has mo= re than 8 params. Eq. int sum(int x1,int x2 int x3,int x4,int x5,int x6,int x7,int x8,int x9 );=20 int test(int input1 )=20 { int c =3D 0; if(input1 =3D=3D 2) // <- If you have breakpoint here, callstack is corru= pted { c +=3Dinput1; } c =3Dsum(1,2,3,4,5,6,7,c,input1); return c; } If you remove the call of sum function, then everything works. If you optimize function " int test(int) " with O0,O1 and O3, it works Only for O2 this problem occurs. So isn't it gcc problem?=