X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/403af5e6247ce6452b721f418a5b41e4548efac4..6f5199d14e3f1b6505d3e264257bfe64bd991ca7:/src/mc/mc_record.cpp diff --git a/src/mc/mc_record.cpp b/src/mc/mc_record.cpp index b0011bd101..51a699d486 100644 --- a/src/mc/mc_record.cpp +++ b/src/mc/mc_record.cpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2014-2017. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2014-2018. 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. */ @@ -19,7 +18,7 @@ #include "src/kernel/context/Context.hpp" #include "src/mc/mc_record.hpp" -#include "src/mc/mc_replay.h" +#include "src/mc/mc_replay.hpp" #include "src/simix/ActorImpl.hpp" #include "src/simix/smx_private.hpp" @@ -37,10 +36,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_record, mc, " Logging specific to MC record/replay facility"); -extern "C" { -std::string MC_record_path; -} - namespace simgrid { namespace mc { @@ -80,7 +75,7 @@ RecordTrace parseRecordTrace(const char* data) RecordTrace res; XBT_INFO("path=%s", data); if (data == nullptr || data[0] == '\0') - throw std::runtime_error("Could not parse record path"); + throw std::invalid_argument("Could not parse record path"); const char* current = data; while (*current) { @@ -88,7 +83,7 @@ RecordTrace parseRecordTrace(const char* data) simgrid::mc::Transition item; int count = sscanf(current, "%d/%d", &item.pid, &item.argument); if(count != 2 && count != 1) - throw std::runtime_error("Could not parse record path"); + throw std::invalid_argument("Could not parse record path"); res.push_back(item); // Find next chunk: