(windows) GDB/MI crash when using "-list-thread-groups --available"
[deliverable/binutils-gdb.git] / gdb / windows-nat.c
index 0f242579359ca12205e992cd0c4ff505798a0605..e3e36cdc3e549900842e80364ecbe1f2f87f3ebb 100644 (file)
@@ -2966,6 +2966,13 @@ windows_nat_target::xfer_partial (enum target_object object,
                                            writebuf, offset, len, xfered_len);
 
     default:
+      if (beneath == NULL)
+       {
+         /* This can happen when requesting the transfer of unsupported
+            objects before a program has been started (and therefore
+            with the current_target having no target beneath).  */
+         return TARGET_XFER_E_IO;
+       }
       return beneath->xfer_partial (object, annex,
                                    readbuf, writebuf, offset, len,
                                    xfered_len);
This page took 0.026019 seconds and 4 git commands to generate.