This is an automated email from Gerrit.

Hsiangkai Wang ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1586

-- gerrit

commit 6879ad32fc450f4214d1d6518d45f086fc8221d7
Author: Hsiangkai Wang <[email protected]>
Date:   Wed Aug 28 10:59:29 2013 +0800

    target: Remove error messages as no .get_gdb_fileio_info
    
    If target does not support semi-hosting function, it has
    no need to provide .get_gdb_fileio_info callback. OpenOCD
    will use default function target_get_gdb_fileio_info_default.
    The default function just return ERROR_FAIL and gdb_server
    will treat every halted condition as normal halted and
    return "Txx" to gdb.
    
    Change-Id: I9ddb2be3a1145eae2ef5b712bdea89eb2e0fbc20
    Signed-off-by: Hsiangkai Wang <[email protected]>

diff --git a/src/target/target.c b/src/target/target.c
index d3f1a98..98b007a 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -1750,14 +1750,16 @@ int target_arch_state(struct target *target)
 static int target_get_gdb_fileio_info_default(struct target *target,
                struct gdb_fileio_info *fileio_info)
 {
-       LOG_ERROR("Not implemented: %s", __func__);
+       /* If target does not support semi-hosting function, target
+          has no need to provide .get_gdb_fileio_info callback.
+          It just return ERROR_FAIL and gdb_server will return "Txx"
+          as target halted every time.  */
        return ERROR_FAIL;
 }
 
 static int target_gdb_fileio_end_default(struct target *target,
                int retcode, int fileio_errno, bool ctrl_c)
 {
-       LOG_ERROR("Not implemented: %s", __func__);
        return ERROR_OK;
 }
 

-- 

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to