A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Efficient lookup of subprogram by offset
[simgrid.git]
/
src
/
mc
/
mc_dwarf.c
diff --git
a/src/mc/mc_dwarf.c
b/src/mc/mc_dwarf.c
index
5b8700c
..
67eccc4
100644
(file)
--- a/
src/mc/mc_dwarf.c
+++ b/
src/mc/mc_dwarf.c
@@
-728,7
+728,8
@@
static void MC_dwarf_handle_subprogram_die(mc_object_info_t info, Dwarf_Die* die
frame->end = -1; // This one is now useless:
// Register it:
frame->end = -1; // This one is now useless:
// Register it:
- xbt_dynar_push(info->subprograms, &frame);
+ const char* key = bprintf("%" PRIx64, (uint64_t) frame->start);
+ xbt_dict_set(info->subprograms, key, frame, NULL);
// Handle children:
MC_dwarf_handle_children(info, die, unit, frame, namespace);
// Handle children:
MC_dwarf_handle_children(info, die, unit, frame, namespace);