From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 024603896C1E; Mon, 7 Dec 2020 13:51:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 024603896C1E From: "1in.lang at seznam dot cz" To: gdb-prs@sourceware.org Subject: [Bug c++/27006] Segmentation fault when using gdb command 'call' Date: Mon, 07 Dec 2020 13:51:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 1in.lang at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2020 13:51:59 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27006 --- Comment #3 from Stanislav Lang <1in.lang at seznam dot cz> --- I've analyzed the problem and in the end there is no bug in 'call' command. The problem was that the OS ABI was set to 'Windows' instead of 'Cygwin'. Therefore my library has expected the 'this' argument of methods at stack b= ut it has obtained the first argument of method instead (because of Windows ca= ll convence). My scenario is a bit complicated, I write a library for embedded target (in Cygwin) but debug it in an advanced simulator (which is a Windows app). The only question is why the OS ABI was detected in older versions of GDB (probably from my binaries or as default value) as 'Cygwin' and now it is detected (probably from the simulator app or as default value) as 'Windows'. May be the behavior is intended and right... I don't know. In any case the explicit setting of OS ABI in initgdb has helped. --=20 You are receiving this mail because: You are on the CC list for the bug.=