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
[project-description] Fix extraction of the ns-3 version.
[simgrid.git]
/
src
/
mc
/
sosp
/
Snapshot.cpp
diff --git
a/src/mc/sosp/Snapshot.cpp
b/src/mc/sosp/Snapshot.cpp
index
625cf52
..
6b07c1f
100644
(file)
--- a/
src/mc/sosp/Snapshot.cpp
+++ b/
src/mc/sosp/Snapshot.cpp
@@
-10,8
+10,7
@@
#include <cstddef> /* std::size_t */
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_snapshot, mc, "Taking and restoring snapshots");
#include <cstddef> /* std::size_t */
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_snapshot, mc, "Taking and restoring snapshots");
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc {
/************************************* Take Snapshot ************************************/
/****************************************************************************************/
/************************************* Take Snapshot ************************************/
/****************************************************************************************/
@@
-58,6
+57,12
@@
static void fill_local_variables_values(mc_stack_frame_t stack_frame, Frame* sco
if (not valid_variable(¤t_variable, scope, (void*)stack_frame->ip))
continue;
if (not valid_variable(¤t_variable, scope, (void*)stack_frame->ip))
continue;
+ if (not current_variable.type) {
+ XBT_VERB("Ignore local variable without type: '%s' [%s]", current_variable.name.c_str(),
+ stack_frame->frame->name.c_str());
+ continue;
+ }
+
s_local_variable_t new_var;
new_var.subprogram = stack_frame->frame;
new_var.ip = stack_frame->ip;
s_local_variable_t new_var;
new_var.subprogram = stack_frame->frame;
new_var.ip = stack_frame->ip;
@@
-283,5
+288,4
@@
void Snapshot::restore(RemoteProcess* process) const
process->clear_cache();
}
process->clear_cache();
}
-} // namespace mc
-} // namespace simgrid
+} // namespace simgrid::mc