> On 2 May 2017, at 08:30, Paul Fertser <[email protected]> wrote: > > Newlib part: > https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=libgloss/arm/syscalls.c;h=0ccad215cdb436cf3ff669038077e773bb35cbe7;hb=HEAD#l804
before that part, there is: https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=newlib/libc/stdlib/system.c;h=135a9d05be92eba9d7851d2a14d6872213330e6c;hb=HEAD I'm not sure, but my understanding is that the arm-none-eabi-gcc toolchain is built without HAVE_SYSTEM, which means it'll return -1 & ENOSYS without ever calling _system(). in my projects (like µOS++) I reimplemented most of the stdlib calls to "take back control" (hi! hi! hi! BoJo! out British readers know more...) over the library. https://github.com/micro-os-plus/micro-os-plus-iii/blob/xpack/src/semihosting/c-syscalls-semihosting.cpp regards, Liviu ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
