Re: gdb 8.3: "handler for the OSI ABI "FreeBSD" is not built into this configuration"
Chris Nicol <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Dear Simon, Thanks for your reply. I went ahead and completed the build of gbd-9.1, which had been the original plan. With the gdb-9.1 executable, I re-ran it against the llvm-tblgen binary and its core dump, with the same result as in gdb-8.3. So this is progress of a sort, I suppose. Taking now the gdb-9.1 and loading gcc9 into the debugger, then "show architecture" yields "The target architecture is set automatically (currently sparc:v9)". The system I am using is based on the 500-MHz UltraSPARC IIe processor. So maybe this setting, sparc:v9, is wrong for this platform? Best wishes, Chris. On 5/22/2020 11:36 AM, Simon Marchi wrote: > 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 > -- ______________________________________________________________________ Dr. Christopher J. Nicol, Phone: (403) 329-2261 University Librarian and FAX: (403) 329-2234 Professor of Economics, The University of Lethbridge, E-Mail: [email protected] Lethbridge, Alberta, T1K 3M4, CANADA. http://people.uleth.ca/~nicolc