public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add FreeBSD/mips targets to GDB
@ 2016-11-23 20:59 John Baldwin
  2016-11-23 20:59 ` [PATCH 1/3] Use the ELF class to determine the word size for FreeBSD core notes John Baldwin
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: John Baldwin @ 2016-11-23 20:59 UTC (permalink / raw)
  To: gdb-patches, binutils

The first patch works around an issue where FreeBSD/mips core
dumps from the kernel include an empty ei_flags value in the ELF
header.  This causes bfd to select the default MIPS architecture
(bfd_mach_3000) even though it is a 64-bit core file.  As a result,
parsing the core dump notes doesn't work correctly since bits_per_word
is 32.  It's not clear to me if bfd shouldn't default to a 64-bit
MIPS machine if the ELF header indicates a 64-bit class instead of
this change?

John Baldwin (3):
  Use the ELF class to determine the word size for FreeBSD core notes.
  Add FreeBSD/mips architecture.
  Add native target for FreeBSD/mips.

 bfd/ChangeLog           |   6 +
 bfd/elf.c               |  23 +-
 gdb/ChangeLog           |  15 ++
 gdb/Makefile.in         |   3 +
 gdb/config/mips/fbsd.mh |   3 +
 gdb/configure.host      |   1 +
 gdb/configure.tgt       |   5 +
 gdb/mips-fbsd-nat.c     | 141 +++++++++++++
 gdb/mips-fbsd-tdep.c    | 541 ++++++++++++++++++++++++++++++++++++++++++++++++
 gdb/mips-fbsd-tdep.h    |  28 +++
 10 files changed, 756 insertions(+), 10 deletions(-)
 create mode 100644 gdb/config/mips/fbsd.mh
 create mode 100644 gdb/mips-fbsd-nat.c
 create mode 100644 gdb/mips-fbsd-tdep.c
 create mode 100644 gdb/mips-fbsd-tdep.h

-- 
2.9.2

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-28 22:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-23 20:59 [PATCH 0/3] Add FreeBSD/mips targets to GDB John Baldwin
2016-11-23 20:59 ` [PATCH 1/3] Use the ELF class to determine the word size for FreeBSD core notes John Baldwin
2016-11-23 20:59 ` [PATCH 3/3] Add native target for FreeBSD/mips John Baldwin
2016-11-26  4:26   ` Luis Machado
2016-11-28 22:54     ` John Baldwin
2016-11-23 20:59 ` [PATCH 2/3] Add FreeBSD/mips architecture John Baldwin
2016-11-25 22:52   ` Luis Machado
2016-11-28 22:54     ` John Baldwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).