From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54384 invoked by alias); 6 Dec 2016 21:01:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 54303 invoked by uid 89); 6 Dec 2016 21:01:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=bits_per_word, baldwin, Baldwin, HX-Greylist:EST X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Dec 2016 21:01:42 +0000 Received: from ralph.com (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id E3E3C10AA59; Tue, 6 Dec 2016 16:01:40 -0500 (EST) From: John Baldwin To: gdb-patches@sourceware.org, binutils@sourceware.org Subject: [PATCH v2 0/3] Add FreeBSD/mips targets to GDB Date: Tue, 06 Dec 2016 21:01:00 -0000 Message-Id: <20161206210015.40422-1-jhb@FreeBSD.org> X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00179.txt.bz2 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? Changes since the first version are to address most (but perhaps not all) of the feedback from Luis Machado on patches 2 and 3. 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 | 565 ++++++++++++++++++++++++++++++++++++++++++++++++ gdb/mips-fbsd-tdep.h | 28 +++ 10 files changed, 780 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