Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of framagit.org:simgrid/simgrid
[simgrid.git] / src / mc / inspect / mc_member.cpp
index 2299d30..9e9af73 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2014-2023. 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. */
@@ -7,8 +7,7 @@
 #include "src/mc/inspect/mc_dwarf.hpp"
 #include "src/mc/mc_private.hpp"
 
-namespace simgrid {
-namespace dwarf {
+namespace simgrid::dwarf {
 
 /** Resolve snapshot in the process address space
  *
@@ -22,8 +21,6 @@ void* resolve_member(const void* base, const simgrid::mc::Type* /*type*/, const
                      const simgrid::mc::AddressSpace* address_space)
 {
   ExpressionContext state;
-  state.frame_base    = nullptr;
-  state.cursor        = nullptr;
   state.address_space = address_space;
 
   ExpressionStack stack;
@@ -32,5 +29,4 @@ void* resolve_member(const void* base, const simgrid::mc::Type* /*type*/, const
   return (void*)stack.top();
 }
 
-} // namespace dwarf
-} // namespace simgrid
+} // namespace simgrid::dwarf