]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/arm-fbsd-nat.c
bfd: sframe: minor code adjustments and fix typos
[thirdparty/binutils-gdb.git] / gdb / arm-fbsd-nat.c
index 340b8e0d7102614dfbb51506cbbd5d5f1a6cc55d..cbe9867f49d2a2f13859b3aa3580cfb1bc1920ff 100644 (file)
@@ -1,6 +1,6 @@
 /* Native-dependent code for FreeBSD/arm.
 
-   Copyright (C) 2017-2022 Free Software Foundation, Inc.
+   Copyright (C) 2017-2024 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -17,7 +17,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#include "defs.h"
 #include "inferior.h"
 #include "target.h"
 
@@ -93,6 +92,9 @@ arm_fbsd_nat_target::read_description ()
   const struct target_desc *desc;
   bool tls = false;
 
+  if (inferior_ptid == null_ptid)
+    return this->beneath ()->read_description ();
+
 #ifdef PT_GETREGSET
   tls = have_regset (inferior_ptid, NT_ARM_TLS) != 0;
 #endif