I had to go to the project properties and make a couple of changes.
C/C++ Build / Environment
I had to change PATH to be /Applications/FreedomStudio.app/Contents/Eclipse/SiFive/sdk-utilities-0.0.0-2019.08.0:/Applications/FreedomStudio.app/Contents/Eclipse/SiFive/msys64-1.0.0-2019.05.2/usr/bin:/Applications/FreedomStudio.app/Contents/Eclipse/SiFive/riscv64-unknown-elf-gcc-8.3.0-2019.08.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Then under C/C++ Build / Settings
I had to change the Cross GCC Compiler, Cross GCC Linker, and Cross GCC Assembler to use riscv64-unknown-elf-gcc instead of riscv64-unknown-elf-gcc.exe
Change Debug->DebugConfigurations->GDB Hardware Debugging->Hardware Qemu->Main->C/C++ Application from “Debug\RTOSDemo.elf” to “Debug/RTOSDemo.elf”.
Then in the next tab (Hardware Qemu->Debugger) Change GDB Command to remove .exe:
iscv64-unknown-elf-gdb .exe -iex “set mem inaccessible-by-default off” -iex “set arch riscv:rv32” -iex “set riscv use_compressed_breakpoint off”
For Ubuntu, I did not need to delete the .exe under build, but needed to remove it from the gdb binary path under Debug Configurations (See Below). I also needed to update PATH as mentioned.