1*fce4895dSRene Gollent /*
2*fce4895dSRene Gollent * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3*fce4895dSRene Gollent * Distributed under the terms of the MIT License.
4*fce4895dSRene Gollent */
5*fce4895dSRene Gollent
6*fce4895dSRene Gollent #include "BasicFunctionDebugInfo.h"
7*fce4895dSRene Gollent
8*fce4895dSRene Gollent #include "SpecificImageDebugInfo.h"
9*fce4895dSRene Gollent
10*fce4895dSRene Gollent
BasicFunctionDebugInfo(SpecificImageDebugInfo * debugInfo,target_addr_t address,target_size_t size,const BString & name,const BString & prettyName)11*fce4895dSRene Gollent BasicFunctionDebugInfo::BasicFunctionDebugInfo(
12*fce4895dSRene Gollent SpecificImageDebugInfo* debugInfo, target_addr_t address,
13*fce4895dSRene Gollent target_size_t size, const BString& name, const BString& prettyName)
14*fce4895dSRene Gollent :
15*fce4895dSRene Gollent fImageDebugInfo(debugInfo),
16*fce4895dSRene Gollent fAddress(address),
17*fce4895dSRene Gollent fSize(size),
18*fce4895dSRene Gollent fName(name),
19*fce4895dSRene Gollent fPrettyName(prettyName)
20*fce4895dSRene Gollent {
21*fce4895dSRene Gollent fImageDebugInfo->AcquireReference();
22*fce4895dSRene Gollent }
23*fce4895dSRene Gollent
24*fce4895dSRene Gollent
~BasicFunctionDebugInfo()25*fce4895dSRene Gollent BasicFunctionDebugInfo::~BasicFunctionDebugInfo()
26*fce4895dSRene Gollent {
27*fce4895dSRene Gollent fImageDebugInfo->ReleaseReference();
28*fce4895dSRene Gollent }
29*fce4895dSRene Gollent
30*fce4895dSRene Gollent
31*fce4895dSRene Gollent SpecificImageDebugInfo*
GetSpecificImageDebugInfo() const32*fce4895dSRene Gollent BasicFunctionDebugInfo::GetSpecificImageDebugInfo() const
33*fce4895dSRene Gollent {
34*fce4895dSRene Gollent return fImageDebugInfo;
35*fce4895dSRene Gollent }
36*fce4895dSRene Gollent
37*fce4895dSRene Gollent
38*fce4895dSRene Gollent target_addr_t
Address() const39*fce4895dSRene Gollent BasicFunctionDebugInfo::Address() const
40*fce4895dSRene Gollent {
41*fce4895dSRene Gollent return fAddress;
42*fce4895dSRene Gollent }
43*fce4895dSRene Gollent
44*fce4895dSRene Gollent
45*fce4895dSRene Gollent target_size_t
Size() const46*fce4895dSRene Gollent BasicFunctionDebugInfo::Size() const
47*fce4895dSRene Gollent {
48*fce4895dSRene Gollent return fSize;
49*fce4895dSRene Gollent }
50*fce4895dSRene Gollent
51*fce4895dSRene Gollent
52*fce4895dSRene Gollent const BString&
Name() const53*fce4895dSRene Gollent BasicFunctionDebugInfo::Name() const
54*fce4895dSRene Gollent {
55*fce4895dSRene Gollent return fName;
56*fce4895dSRene Gollent }
57*fce4895dSRene Gollent
58*fce4895dSRene Gollent
59*fce4895dSRene Gollent const BString&
PrettyName() const60*fce4895dSRene Gollent BasicFunctionDebugInfo::PrettyName() const
61*fce4895dSRene Gollent {
62*fce4895dSRene Gollent return fPrettyName;
63*fce4895dSRene Gollent }
64*fce4895dSRene Gollent
65*fce4895dSRene Gollent
66*fce4895dSRene Gollent bool
IsMain() const67*fce4895dSRene Gollent BasicFunctionDebugInfo::IsMain() const
68*fce4895dSRene Gollent {
69*fce4895dSRene Gollent return false;
70*fce4895dSRene Gollent }
71*fce4895dSRene Gollent
72*fce4895dSRene Gollent
73*fce4895dSRene Gollent LocatableFile*
SourceFile() const74*fce4895dSRene Gollent BasicFunctionDebugInfo::SourceFile() const
75*fce4895dSRene Gollent {
76*fce4895dSRene Gollent return NULL;
77*fce4895dSRene Gollent }
78*fce4895dSRene Gollent
79*fce4895dSRene Gollent
80*fce4895dSRene Gollent SourceLocation
SourceStartLocation() const81*fce4895dSRene Gollent BasicFunctionDebugInfo::SourceStartLocation() const
82*fce4895dSRene Gollent {
83*fce4895dSRene Gollent return SourceLocation();
84*fce4895dSRene Gollent }
85*fce4895dSRene Gollent
86*fce4895dSRene Gollent
87*fce4895dSRene Gollent SourceLocation
SourceEndLocation() const88*fce4895dSRene Gollent BasicFunctionDebugInfo::SourceEndLocation() const
89*fce4895dSRene Gollent {
90*fce4895dSRene Gollent return SourceLocation();
91*fce4895dSRene Gollent }
92