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