From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1EA223858D35; Tue, 14 Feb 2023 06:12:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EA223858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676355129; bh=RkJ1N9pFRUTyqNmf3gIHCsKUsHueJ9WMLiyuJYwizVM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bneZK8leAIXhhKHH29Da0d3gNGR6OAS1jOpYd+/Ddh3Hr3L9o5eyVXIFyrdSBHSxB xFsroI33ban9TPsBUqnueCffpXCvKUUCf1Pre1oxZVDOoXi81ln9kuMW1Vsq05qhW1 wkunVM+/pMXk8kMEWpvgniPr+Bd2f5p4aEbDclUk= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug go/30038] When using CGO and C code is calling GO function, not getting call stack of C from core dump. Only getting call stack of GO. Date: Tue, 14 Feb 2023 06:12:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: go X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30038 --- Comment #5 from Tom Tromey --- This seems to work for me: (gdb) frame #7 0x0000000000405040 in test1 () at /home/tromey/gdb/PRS/pr-30038-go-bug/test.go:9 9 Test4(); Also, from bt: #5 0x000000000040475e in main.Test4 () at /home/tromey/gdb/PRS/pr-30038-go-bug/export.go:7 #6 0x00000000004047ac in main.Cgoexp__Test4 () at /tmp/go-build/b001/_cgo_gotypes.go:34 #7 0x0000000000405040 in test1 () at /home/tromey/gdb/PRS/pr-30038-go-bug/test.go:9 #8 0x0000000000405060 in test2 () at /home/tromey/gdb/PRS/pr-30038-go-bug/test.go:14 #9 0x0000000000405080 in test3 () at /home/tromey/gdb/PRS/pr-30038-go-bug/test.go:19 #10 0x00000000004050a0 in _cgo_5bc4e3e20e89_Cfunc_test3 () at /tmp/go-build/cgo-gcc-prolog:46 #11 0x0000000000404ed8 in main.__Cfunc__test3 () at /tmp/go-build/b001/_cgo_gotypes.go:25 I tried this live, not a core file though. --=20 You are receiving this mail because: You are on the CC list for the bug.=