From owner-freebsd-ppc@freebsd.org Sun May 7 00:21:13 2017 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 165BBD55520 for ; Sun, 7 May 2017 00:21:13 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-78.reflexion.net [208.70.210.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98E5B1722 for ; Sun, 7 May 2017 00:21:11 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 27827 invoked from network); 7 May 2017 00:22:20 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 7 May 2017 00:22:20 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.0) with SMTP; Sat, 06 May 2017 20:21:10 -0400 (EDT) Received: (qmail 8232 invoked from network); 7 May 2017 00:21:10 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 7 May 2017 00:21:10 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 8B20FEC808D; Sat, 6 May 2017 17:21:09 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Lack of TARGET_ARCH=powerpc support in kgdb from devel/gdb (e.g., -r440115 of /usr/ports): "ABI doesn't support a vmcore target" Message-Id: Date: Sat, 6 May 2017 17:21:08 -0700 To: FreeBSD Toolchain , FreeBSD PowerPC ML , FreeBSD Ports X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 May 2017 00:21:13 -0000 On: # uname -apKU FreeBSD FBSDG4S 12.0-CURRENT FreeBSD 12.0-CURRENT r317820M powerpc = powerpc 1200030 1200030 When I attempt to use: # which kgdb /usr/local/bin/kgdb that was from building devel/gdb for: # svnlite info /usr/ports | grep "Re[plv]" Relative URL: ^/head Repository Root: https://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 440115 Last Changed Rev: 440115 (built via gcc 4.2.1: not via clang: I experiment with clang for powerpc and powerpc64 so I'm being explicit) I end up getting the following sort of result: # kgdb /usr/lib/debug/boot/kernel/kernel.debug /var/crash/vmcore.4=20 . . . Reading symbols from /usr/lib/debug/boot/kernel/kernel.debug...done. ABI doesn't support a vmcore target That message is from: /usr/ports/devel/gdb/files/kgdb/fbsd-kvm.c . . . static void kgdb_trgt_open(const char *arg, int from_tty) { struct fbsd_vmcore_ops *ops =3D (struct fbsd_vmcore_ops *) gdbarch_data (target_gdbarch(), fbsd_vmcore_data); . . . if (ops =3D=3D NULL || ops->supply_pcb =3D=3D NULL || = ops->cpu_pcb_addr =3D=3D NULL) error ("ABI doesn't support a vmcore target"); . . . It appears that there is no kernel debugging supported for TARGET_ARCH=3Dpowerpc currently. (The system no longer has its own gdb related materials.) =3D=3D=3D Mark Millard markmi at dsl-only.net