Don't try to get the TIB address without an inferior
[deliverable/binutils-gdb.git] / gdb / windows-tdep.c
index 4e5d8303ca451d7591c4b25a4e21e65655424a56..e02b1ceed3873e3d4906a8df62964258a777f2a4 100644 (file)
@@ -843,7 +843,8 @@ windows_solib_create_inferior_hook (int from_tty)
     }
   CORE_ADDR tlb;
   gdb_byte buf[8];
-  if (target_get_tib_address (inferior_ptid, &tlb)
+  if (target_has_execution
+      && target_get_tib_address (inferior_ptid, &tlb)
       && !target_read_memory (tlb + peb_offset, buf, ptr_bytes))
     {
       CORE_ADDR peb = extract_unsigned_integer (buf, ptr_bytes, byte_order);
This page took 0.026361 seconds and 4 git commands to generate.