gdb: use gdb_bfd_count_sections in macho_symfile_offsets
[deliverable/binutils-gdb.git] / gdb / i386-fbsd-nat.c
index 2309b7650688703f892b418462063e079679eb24..f15fd625b121ffa44ec870b9cc19b2d200ba86f3 100644 (file)
@@ -1,6 +1,6 @@
 /* Native-dependent code for FreeBSD/i386.
 
-   Copyright (C) 2001-2019 Free Software Foundation, Inc.
+   Copyright (C) 2001-2021 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 "common/x86-xstate.h"
+#include "gdbsupport/x86-xstate.h"
 #include "x86-bsd-nat.h"
 #include "i386-bsd-nat.h"
 
@@ -73,14 +73,14 @@ i386_fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
       ULONGEST eflags;
 
       /* Workaround for a bug in FreeBSD.  Make sure that the trace
-        flag is off when doing a continue.  There is a code path
-        through the kernel which leaves the flag set when it should
-        have been cleared.  If a process has a signal pending (such
-        as SIGALRM) and we do a PT_STEP, the process never really has
-        a chance to run because the kernel needs to notify the
-        debugger that a signal is being sent.  Therefore, the process
-        never goes through the kernel's trap() function which would
-        normally clear it.  */
+        flag is off when doing a continue.  There is a code path
+        through the kernel which leaves the flag set when it should
+        have been cleared.  If a process has a signal pending (such
+        as SIGALRM) and we do a PT_STEP, the process never really has
+        a chance to run because the kernel needs to notify the
+        debugger that a signal is being sent.  Therefore, the process
+        never goes through the kernel's trap() function which would
+        normally clear it.  */
 
       regcache_cooked_read_unsigned (regcache, I386_EFLAGS_REGNUM,
                                     &eflags);
@@ -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);
 
This page took 0.026437 seconds and 4 git commands to generate.