From 18c71d167ba1f489bb2c6013ef992dd538f82aca Mon Sep 17 00:00:00 2001 From: wdbee Date: Sat, 6 Dec 2014 12:24:40 +0000 Subject: [PATCH] NEW ROBOT dandroid (Carset GP36 as first set) This robot was developed with linux and tested with windows (VC++). It will replace the usr robot step by step. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5882 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: a8c17821f15be938c3d94e4179e0d10b0c5ee243 Former-commit-id: 68dc770818f18615feeadecc3f404ea7ba1b4b2d --- src/drivers/CMakeLists.txt | 1 + src/libs/tgf/memmanager.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/drivers/CMakeLists.txt b/src/drivers/CMakeLists.txt index 55ffb8932..dbd633fa2 100644 --- a/src/drivers/CMakeLists.txt +++ b/src/drivers/CMakeLists.txt @@ -2,6 +2,7 @@ INCLUDE(../../cmake/macros.cmake) # Official robots. SD_ADD_SUBDIRECTORY(human) +SD_ADD_SUBDIRECTORY(dandroid) SD_ADD_SUBDIRECTORY(kilo2008) SD_ADD_SUBDIRECTORY(networkhuman) SD_ADD_SUBDIRECTORY(simplix) diff --git a/src/libs/tgf/memmanager.cpp b/src/libs/tgf/memmanager.cpp index 52ea3f3df..fe41946e8 100644 --- a/src/libs/tgf/memmanager.cpp +++ b/src/libs/tgf/memmanager.cpp @@ -493,14 +493,14 @@ void* GfMemoryManagerAlloc (size_t size, uint8 type, void* retAddr) void* b = (void*) (c + 1); //c is still pointing to the data // Hunting memory leaks ... -#define IDTOSTOP 428767 // ID of block you are looking for +#define IDTOSTOP 12144 // ID of block you are looking for char buf[10]; snprintf(buf,sizeof(buf),"%p",c->RAdr); buf[0] = 'X'; buf[1] = 'X'; buf[2] = 'X'; buf[3] = 'X'; - if ((ID == IDTOSTOP) || (strncmp(buf,"XXXXF19F",8) == 0)) + if ((ID == IDTOSTOP) || (strncmp(buf,"XXXX511C",8) == 0)) { ID = 0; // set breakpoint here // to stop at allocation of