then there's no point in GDB sending "vFile:setfs:" packets. We
reply with an empty packet (i.e. we pretend we don't understand
"vFile:setfs:") and that should stop GDB sending any more. */
- if (the_target->multifs_open == NULL
- && the_target->multifs_unlink == NULL
- && the_target->multifs_readlink == NULL)
+ if (!the_target->supports_multifs ())
{
own_buf[0] = '\0';
return;
/* We do not need to convert MODE, since the fileio protocol
uses the standard values. */
- if (hostio_fs_pid != 0 && the_target->multifs_open != NULL)
- fd = the_target->multifs_open (hostio_fs_pid, filename,
- flags, mode);
+ if (hostio_fs_pid != 0)
+ fd = the_target->multifs_open (hostio_fs_pid, filename, flags, mode);
else
fd = open (filename, flags, mode);
return;
}
- if (hostio_fs_pid != 0 && the_target->multifs_unlink != NULL)
+ if (hostio_fs_pid != 0)
ret = the_target->multifs_unlink (hostio_fs_pid, filename);
else
ret = unlink (filename);
return;
}
- if (hostio_fs_pid != 0 && the_target->multifs_readlink != NULL)
+ if (hostio_fs_pid != 0)
ret = the_target->multifs_readlink (hostio_fs_pid, filename,
linkname,
sizeof (linkname) - 1);