-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
components: add gdb scripts to dump gcov and gprof data
Signed-off-by: Huaqi Fang <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
define dump_gcov_data | ||
set $node=gcov_data_head | ||
while ($node != 0) | ||
set $filename=$node->filename | ||
set $bufstart=$node->buffer | ||
set $bufend=$node->buffer + $node->size | ||
printf "dump binary memory %s 0x%lx 0x%lx\n", $filename, $bufstart, $bufend | ||
eval "dump binary memory %s 0x%lx 0x%lx\n", $filename, $bufstart, $bufend | ||
set $node=$node->next | ||
end | ||
end | ||
dump_gcov_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
printf "dump binary memory gmon.out 0x%lx 0x%lx\n", gprof_data.buf, gprof_data.buf + gprof_data.size | ||
dump binary memory gmon.out gprof_data.buf gprof_data.buf + gprof_data.size |