Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Move Frame, ModelChecker, ObjectInformation, Type, Variable in their own files
[simgrid.git] / src / mc / mc_object_info.cpp
1 /* Copyright (c) 2014-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <stddef.h>
8
9 #include <xbt/dynar.h>
10
11 #include "mc_object_info.h"
12 #include "mc_private.h"
13 #include "mc/Frame.hpp"
14 #include "mc/Type.hpp"
15 #include "mc/Variable.hpp"
16
17 namespace simgrid {
18 namespace mc {
19
20 // Free functions
21
22 static void mc_frame_free(void* frame)
23 {
24   delete (simgrid::mc::Frame*)frame;
25 }
26
27 static void mc_type_free(void* t)
28 {
29   delete (simgrid::mc::Type*)t;
30 }
31
32 // Type
33
34 Type::Type()
35 {
36   this->type = 0;
37   this->id = 0;
38   this->byte_size = 0;
39   this->element_count = 0;
40   this->is_pointer_type = 0;
41   this->type_id = 0;
42   this->subtype = nullptr;
43   this->full_type = nullptr;
44 }
45
46 // Type
47
48 Variable::Variable()
49 {
50   this->dwarf_offset = 0;
51   this->global = 0;
52   this->type = nullptr;
53   this->type_id = 0;
54   this->address = nullptr;
55   this->start_scope = 0;
56   this->object_info = nullptr;
57 }
58
59 // Frame
60
61 Frame::Frame()
62 {
63   this->tag = 0;
64   this->low_pc = nullptr;
65   this->high_pc = nullptr;
66   this->id = 0;
67   this->abstract_origin_id = 0;
68   this->object_info = nullptr;
69 }
70
71 }
72 }