From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E37F3A458A1; Thu, 29 Apr 2021 23:19:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E37F3A458A1 From: "jrmuizel at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug tdep/27789] backtraces through unknown functions on m68k are broken Date: Thu, 29 Apr 2021 23:19:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jrmuizel at gmail dot com 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: Thu, 29 Apr 2021 23:19:50 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27789 --- Comment #6 from Jeff Muizelaar --- It's possible to just load the attached core file with a gdb that targets m68k-linux (like ubuntu's gdb-multiarch) gdb -c core GNU gdb (GDB) 10.2 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=3Dx86_64-pc-linux-gnu --target=3Dm68k-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". warning: Can't open file /root/a.out during file-backed mapping note proces= sing warning: Can't open file /usr/lib/m68k-linux-gnu/ld-2.31.so during file-bac= ked mapping note processing warning: Can't open file /usr/lib/m68k-linux-gnu/libc-2.31.so during file-backed mapping note processing [New LWP 395] Core was generated by `./a.out'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x800003be in ?? () (gdb) bt #0 0x800003be in ?? () #1 0xeff50c44 in ?? () #2 0x800003da in ?? () #3 0x00000004 in ?? () #4 0xeff50c50 in ?? () #5 0x800003ec in ?? () #6 0x00000000 in ?? () (gdb) q notice the garbage frames: 1, 3, 4 and 6 Applying the attached patch which does the same thing as 7618e12bcb8f15e83c8c6abc5216f520f09bdbf9 gives: (gdb) bt #0 0x800003be in ?? () #1 0x800003da in ?? () #2 0x800003ec in ?? () #3 0x80000408 in ?? () #4 0xc004a902 in ?? () #5 0x80000346 in ?? () --=20 You are receiving this mail because: You are on the CC list for the bug.=