svn commit: r354239 - head/contrib/gdb/gdb

John Baldwin jhb at FreeBSD.org
Fri Nov 1 16:06:23 UTC 2019


On 11/1/19 4:28 AM, Leandro Lupori wrote:
> Author: luporl
> Date: Fri Nov  1 11:28:43 2019
> New Revision: 354239
> URL: https://svnweb.freebsd.org/changeset/base/354239
> 
> Log:
>   [PPC64] Fix GDB sigtramp detection
>   
>   Current implementation of ppcfbsd_pc_in_sigtramp() seems to take only 32-bit
>   PowerPC in account, as on 64-bit PowerPC most kernel instruction addresses will
>   be wrongly reported as in sigtramp.
>   
>   This change adds proper sigtramp detection for PPC64.

It's probably not worth fixing this in /usr/bin/gdb?  At this point gdb is only
installed for the kgdb in /usr/libexec on all platforms but sparc64 to serve as
a fall-back for the crashinfo script in case the ports gdb isn't installed.  The
ports gdb should handle signal trampolines fine on ppc.  It uses instruction
matching patterns to detect trampolines on all supported platforms instead of
static sigtramp locations.

-- 
John Baldwin


More information about the svn-src-all mailing list