Skip to content
  • Steven Stallion's avatar
    semihosting: support fileio operation · c0e7ccbd
    Steven Stallion authored
    
    
    This patch adds support for bridging semihosting to GDB's File-I/O
    remote protocol extension. For the most part operations match up 1:1,
    however some require a working area to complete successfully, namely
    operations that devolve to read, stat, and gettimeofday.
    
    A new command was added to enable support for fileio named `arm
    semihosting_fileio`, which ensures that the default behavior remains
    intact for those that prefer it.
    
    Finally, redundant logging was removed from the target_arch_state
    function; this permits ARM targets to quiesce log output when polling
    for a fileio reply. This prevents filling the logs with halt/resume
    messages when using semihosting fileio.
    
    Change-Id: Ifbb864fc2373336a501cc0332675b887b552e1ee
    Signed-off-by: default avatarSteven Stallion <stallion@squareup.com>
    Reviewed-on: http://openocd.zylin.com/3566
    
    
    Tested-by: jenkins
    Reviewed-by: default avatarSteven Stallion <sstallion@gmail.com>
    Reviewed-by: default avatarPaul Fertser <fercerpav@gmail.com>
    c0e7ccbd