[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gdb failure: "core file format not supported"



I wasn't able to add the linux-m68k list to the bug report Cc list.

I'm forwarding this as I don't know the answer to Tom's question...

On Sat, 25 Mar 2023, tromey at sourceware dot org wrote:

> https://sourceware.org/bugzilla/show_bug.cgi?id=30273
> 
> Tom Tromey <tromey at sourceware dot org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |tromey at sourceware dot org
> 
> --- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
> This is probably a regression due to this patch:
> 
> commit 3eba3a011a89c75c10bd1860eee4589e65697165
> Author: Tom Tromey <tromey@adacore.com>
> 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 == 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.
> 


Reply to: