Additional corrections for Safe_calloc in sdcdb
[fw/sdcc] / debugger / mcs51 / break.c
index fe412946ed06e74a3f9318c16ea543709fbdb633..4e5c263c5079176aeb808bdf1fcd714986df81cf 100644 (file)
@@ -24,6 +24,7 @@
 #include "sdcdb.h"
 #include "symtab.h"
 #include "break.h"
+#include "newalloc.h"
 
 static hTab *bptable = NULL;
 char userBpPresent = 0;
@@ -42,7 +43,7 @@ int setBreakPoint (unsigned addr, char addrType, char bpType,
     char simbuf[50];
 
     /* allocate & init a new bp */
-    Safe_calloc(1,bp,sizeof(breakp));
+    bp = Safe_calloc(1,sizeof(breakp));
     bp->addr = addr;
     bp->addrType = addrType;
     bp->bpType = bpType;