Re: gdb 8.3: "handler for the OSI ABI "FreeBSD" is not built into this configuration"
Simon Marchi <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On 2020-05-22 1:56 a.m., Chris Nicol wrote:
> Dear List,
>
> My system - SunBlade 100 running FreeBSD 12.1 had a stock gdb 6.1.1
> version of the debugger, which came with the FreeBSD 12.1 I am running. This version would not would not run against some core dumps I had from llvm-tblgen in the
> build of llvm90. This was being built with gcc9, a gcc9 which I built
> and installed on the SunBlade 100 from the /usr/ports tree. When I run
> the gdb-8.3 against that llvn-tblgen.core, I get an initial message "A
> handler for the OSI ABI "FreeBSD" is not built into this configuration
> of GDB. Attempting to continue with the default sparc settings".
Let's start with this, as it's a sign that there's probably something wrong
already.
There should be a call to gdbarch_register_osabi that registers a handler
for the (cpu, os) pair. In sparc64-fbsd-tdep.c, I see this call, for
example:
gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
GDB_OSABI_FREEBSD, sparc64fbsd_init_abi);
However, maybe your particular machine does not match the machine
bfd_arch_sparc / bfd_mach_sparc_v9? What does it show if you load
some binary file into GDB, then do "show architecture"?
Simon