2009-06-20 17:20:49 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef FUNCTION_DEBUG_INFO_H
|
|
|
|
#define FUNCTION_DEBUG_INFO_H
|
|
|
|
|
|
|
|
#include <Referenceable.h>
|
|
|
|
|
2009-06-26 15:11:56 +00:00
|
|
|
#include "SourceLocation.h"
|
2009-06-29 22:38:15 +00:00
|
|
|
#include "Types.h"
|
2009-06-26 15:11:56 +00:00
|
|
|
|
|
|
|
|
2009-07-07 20:47:39 +00:00
|
|
|
class BString;
|
2009-07-03 00:56:39 +00:00
|
|
|
class LocatableFile;
|
2009-06-27 21:09:21 +00:00
|
|
|
class SpecificImageDebugInfo;
|
2009-06-20 17:20:49 +00:00
|
|
|
|
|
|
|
|
2010-12-16 13:50:30 +00:00
|
|
|
class FunctionDebugInfo : public BReferenceable {
|
2009-06-26 15:11:56 +00:00
|
|
|
public:
|
|
|
|
FunctionDebugInfo();
|
2009-06-20 17:20:49 +00:00
|
|
|
virtual ~FunctionDebugInfo();
|
|
|
|
|
2009-06-27 21:09:21 +00:00
|
|
|
virtual SpecificImageDebugInfo* GetSpecificImageDebugInfo() const = 0;
|
2009-06-20 17:20:49 +00:00
|
|
|
virtual target_addr_t Address() const = 0;
|
|
|
|
virtual target_size_t Size() const = 0;
|
2009-07-07 20:47:39 +00:00
|
|
|
virtual const BString& Name() const = 0;
|
|
|
|
virtual const BString& PrettyName() const = 0;
|
2009-06-26 15:11:56 +00:00
|
|
|
|
2013-07-12 20:31:40 -04:00
|
|
|
virtual bool IsMain() const = 0;
|
|
|
|
|
2009-07-03 00:56:39 +00:00
|
|
|
virtual LocatableFile* SourceFile() const = 0;
|
2009-06-26 15:11:56 +00:00
|
|
|
virtual SourceLocation SourceStartLocation() const = 0;
|
|
|
|
virtual SourceLocation SourceEndLocation() const = 0;
|
2009-06-20 17:20:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // FUNCTION_DEBUG_INFO_H
|