This is an automated email from Gerrit.

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

-- gerrit

commit 198dc8de6d11889ca416fb68b81c96d41887bcd9
Author: Vivien Giraud <[email protected]>
Date:   Thu Jun 28 10:19:09 2012 +0200

    Halt the target when debug reason is 6.
    Avoid upload fail because of unhalted target.
    
    Change-Id: I00a7118710701df68fe9f1c544598a160b72790c
    Signed-off-by: Vivien Giraud <[email protected]>

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 1c0ee08..ec94a64 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -126,6 +126,8 @@ static int gdb_last_signal(struct target *target)
                default:
                        LOG_USER("undefined debug reason %d - target needs 
reset",
                        target->debug_reason);
+                       if (target->debug_reason == 6)
+                               target_halt(target);
                        return 0x0;
        }
 }

-- 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to