vfs: check userland buffers before reading them.
[haiku.git] / headers / private / debugger / debug_info / FunctionDebugInfo.h
blob3d6ab3bc271c4bb0a80160c2062bbb4996c7eb1b
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef FUNCTION_DEBUG_INFO_H
6 #define FUNCTION_DEBUG_INFO_H
8 #include <Referenceable.h>
10 #include "SourceLocation.h"
11 #include "Types.h"
14 class BString;
15 class LocatableFile;
16 class SpecificImageDebugInfo;
19 class FunctionDebugInfo : public BReferenceable {
20 public:
21 FunctionDebugInfo();
22 virtual ~FunctionDebugInfo();
24 virtual SpecificImageDebugInfo* GetSpecificImageDebugInfo() const = 0;
25 virtual target_addr_t Address() const = 0;
26 virtual target_size_t Size() const = 0;
27 virtual const BString& Name() const = 0;
28 virtual const BString& PrettyName() const = 0;
30 virtual bool IsMain() const = 0;
32 virtual LocatableFile* SourceFile() const = 0;
33 virtual SourceLocation SourceStartLocation() const = 0;
34 virtual SourceLocation SourceEndLocation() const = 0;
38 #endif // FUNCTION_DEBUG_INFO_H