Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Tobias Decking
GHC
Commits
7b60a250
Commit
7b60a250
authored
Feb 13, 2007
by
andy@galois.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing bad allocation of tix box breakpointing array.
parent
ebf73311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
rts/Hpc.c
rts/Hpc.c
+4
-1
No files found.
rts/Hpc.c
View file @
7b60a250
...
...
@@ -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
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment