From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 234D23858C50; Sat, 25 Mar 2023 17:10:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 234D23858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679764242; bh=4ubYHqzgq/0ZWC3UIO0+TuHe3Kif1wrX2ar17H0hGLY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=O3cDn6e5XJlB+0DkQXGfRZgOauOMY5KS4DYUiu3268RvjH1o/9fCdPBRWpK7TaXHF IusNg9vOXLbbG+ccfVXTAQ9xa8LX6UIRA7v54rJM/s5CFnwDDz+mLpIBievFYuRI4G GWG16Sj/G6Lrhmz6ZFCgYhK0BRcWZ37El0mJJbv0= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug corefiles/30273] Regression - "Core file format not supported" Date: Sat, 25 Mar 2023 17:10:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: corefiles X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org 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: cc 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=3D30273 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #1 from Tom Tromey --- This is probably a regression due to this patch: commit 3eba3a011a89c75c10bd1860eee4589e65697165 Author: Tom Tromey Date: Mon Sep 14 08:30:10 2020 -0600 Various m68k fixes for gdb When I debug gdb I see it decides this core file is GDB_OSABI_SVR4, not GDB_OSABI_LINUX. This happens because m68k_osabi_sniffer takes this branch: if (elfosabi =3D=3D ELFOSABI_NONE) return GDB_OSABI_SVR4; >From elf/common.h: #define ELFOSABI_NONE 0 /* UNIX System V ABI */ #define ELFOSABI_HPUX 1 /* HP-UX operating system */ #define ELFOSABI_NETBSD 2 /* NetBSD */ #define ELFOSABI_GNU 3 /* GNU */ #define ELFOSABI_LINUX 3 /* Alias for ELFOSABI_GNU */ So I guess one question is why this core file isn't marked as ELFOSABI_LINUX. --=20 You are receiving this mail because: You are on the CC list for the bug.=