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/1329
-- gerrit commit 3b7a56d648fcd5e6b04d26bdd166753da440af72 Author: Hsiangkai <[email protected]> Date: Fri Apr 12 11:39:21 2013 +0800 nds32: turn off virtual hosting before target resumes as detaching gdb After detach gdb, there is no need to handle virtual hosting. To avoid virtual hosting updates status unexpectedly, turn off it before target resumes in gdb-detach event handler. Change-Id: I536d9c170956299269abfe63d7f882fae8e609b2 Signed-off-by: Hsiangkai <[email protected]> diff --git a/src/target/nds32.c b/src/target/nds32.c index 1693b4b..b5b55ee 100644 --- a/src/target/nds32.c +++ b/src/target/nds32.c @@ -2294,10 +2294,15 @@ static int nds32_gdb_attach(struct nds32 *nds32) static int nds32_gdb_detach(struct nds32 *nds32) { LOG_DEBUG("nds32_gdb_detach"); + bool backup_virtual_hosting_setting; if (gdb_attached) { + backup_virtual_hosting_setting = nds32->virtual_hosting; + /* turn off virtual hosting before resume as gdb-detach */ + nds32->virtual_hosting = false; target_resume(nds32->target, 1, 0, 0, 0); + nds32->virtual_hosting = backup_virtual_hosting_setting; if (nds32->keep_target_edm_ctl) { /* restore target EDM_CTL */ -- ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
