X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fi386-fbsd-nat.c;h=480c017da4111dde2f3a0e9c61ce9ecc35bbe027;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=46f9a86006387b678ecbf932c4e42f51fc50dd69;hpb=73e1c03f93f0294b464dc2b67de1f9aaae84838d;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/i386-fbsd-nat.c b/gdb/i386-fbsd-nat.c index 46f9a86006..480c017da4 100644 --- a/gdb/i386-fbsd-nat.c +++ b/gdb/i386-fbsd-nat.c @@ -1,6 +1,6 @@ /* Native-dependent code for FreeBSD/i386. - Copyright (C) 2001-2018 Free Software Foundation, Inc. + Copyright (C) 2001-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -30,7 +30,7 @@ #include "fbsd-nat.h" #include "i386-tdep.h" #include "x86-nat.h" -#include "x86-xstate.h" +#include "gdbsupport/x86-xstate.h" #include "x86-bsd-nat.h" #include "i386-bsd-nat.h" @@ -58,14 +58,14 @@ static i386_fbsd_nat_target the_i386_fbsd_nat_target; void i386_fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signal) { - pid_t pid = ptid_get_pid (ptid); + pid_t pid = ptid.pid (); int request = PT_STEP; if (pid == -1) /* Resume all threads. This only gets used in the non-threaded case, where "resume all threads" and "resume inferior_ptid" are the same. */ - pid = ptid_get_pid (inferior_ptid); + pid = inferior_ptid.pid (); if (!step) { @@ -148,7 +148,7 @@ i386_fbsd_nat_target::read_description () { struct ptrace_xstate_info info; - if (ptrace (PT_GETXSTATE_INFO, ptid_get_pid (inferior_ptid), + if (ptrace (PT_GETXSTATE_INFO, inferior_ptid.pid (), (PTRACE_TYPE_ARG3) &info, sizeof (info)) == 0) { x86bsd_xsave_len = info.xsave_len; @@ -160,7 +160,7 @@ i386_fbsd_nat_target::read_description () if (x86bsd_xsave_len == 0) xcr0 = X86_XSTATE_SSE_MASK; - return i386_target_description (xcr0); + return i386_target_description (xcr0, true); } #endif @@ -174,8 +174,9 @@ i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint () } #endif +void _initialize_i386fbsd_nat (); void -_initialize_i386fbsd_nat (void) +_initialize_i386fbsd_nat () { add_inf_child_target (&the_i386_fbsd_nat_target);