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 11 BasicFunctionDebugInfo::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 25 BasicFunctionDebugInfo::~BasicFunctionDebugInfo() 26 { 27 fImageDebugInfo->ReleaseReference(); 28 } 29 30 31 SpecificImageDebugInfo* 32 BasicFunctionDebugInfo::GetSpecificImageDebugInfo() const 33 { 34 return fImageDebugInfo; 35 } 36 37 38 target_addr_t 39 BasicFunctionDebugInfo::Address() const 40 { 41 return fAddress; 42 } 43 44 45 target_size_t 46 BasicFunctionDebugInfo::Size() const 47 { 48 return fSize; 49 } 50 51 52 const BString& 53 BasicFunctionDebugInfo::Name() const 54 { 55 return fName; 56 } 57 58 59 const BString& 60 BasicFunctionDebugInfo::PrettyName() const 61 { 62 return fPrettyName; 63 } 64 65 66 bool 67 BasicFunctionDebugInfo::IsMain() const 68 { 69 return false; 70 } 71 72 73 LocatableFile* 74 BasicFunctionDebugInfo::SourceFile() const 75 { 76 return NULL; 77 } 78 79 80 SourceLocation 81 BasicFunctionDebugInfo::SourceStartLocation() const 82 { 83 return SourceLocation(); 84 } 85 86 87 SourceLocation 88 BasicFunctionDebugInfo::SourceEndLocation() const 89 { 90 return SourceLocation(); 91 } 92