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] Initialize expression->ops before calling mc_dwarf_expression_init.
[simgrid.git]
/
src
/
mc
/
mc_dwarf_expression.c
diff --git
a/src/mc/mc_dwarf_expression.c
b/src/mc/mc_dwarf_expression.c
index
c349091
..
f143a37
100644
(file)
--- a/
src/mc/mc_dwarf_expression.c
+++ b/
src/mc/mc_dwarf_expression.c
@@
-1,3
+1,8
@@
+/* Copyright (c) 2014. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#include <stdint.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdarg.h>
@@
-364,10
+369,10
@@
void mc_dwarf_location_list_init(mc_location_list_t list, mc_object_info_t info,
list->size++;
list->locations = (mc_expression_t) realloc(list->locations, list->size*sizeof(s_mc_expression_t));
mc_expression_t expression = list->locations + i;
list->size++;
list->locations = (mc_expression_t) realloc(list->locations, list->size*sizeof(s_mc_expression_t));
mc_expression_t expression = list->locations + i;
-
- void* base = info->flags & MC_OBJECT_INFO_EXECUTABLE ? 0 : MC_object_base_address(info);
+ expression->ops = NULL;
mc_dwarf_expression_init(expression, len, ops);
mc_dwarf_expression_init(expression, len, ops);
+ void* base = info->flags & MC_OBJECT_INFO_EXECUTABLE ? 0 : MC_object_base_address(info);
// If start == 0, this is not a location list:
expression->lowpc = start == 0 ? NULL : (char*) base + start;
expression->highpc = start == 0 ? NULL : (char*) base + end;
// If start == 0, this is not a location list:
expression->lowpc = start == 0 ? NULL : (char*) base + start;
expression->highpc = start == 0 ? NULL : (char*) base + end;