Commit 7b60a250 authored by andy@galois.com's avatar andy@galois.com

Fixing bad allocation of tix box breakpointing array.

parent ebf73311
......@@ -471,6 +471,7 @@ startupHpc(void) {
int comma;
Info *tmpModule;
int rixFD, rixCmdFD;
int tixCount = 0;
assert(hpc_inited);
......@@ -511,6 +512,8 @@ startupHpc(void) {
tmpModule->modName,
tmpModule->tickCount);
tixCount += tmpModule->tickCount;
debugTrace(DEBUG_hpc,"(tracer)%s: %u (offset=%u)\n",
tmpModule->modName,
tmpModule->tickCount,
......@@ -523,7 +526,7 @@ startupHpc(void) {
// Allocate the tixBox breakpoint array
// These are set to 1 if you want to
// stop at a specific breakpoint
tixBoxBP = (int *)calloc(1,sizeof(int));
tixBoxBP = (int *)calloc(tixCount,sizeof(int));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment