xref: /haiku/src/kits/debugger/debug_info/loading_state_handlers/DwarfLoadingStateHandler.h (revision fce4895d1884da5ae6fb299d23c735c598e690b1)
1 /*
2  * Copyright 2014, Rene Gollent, rene@gollent.com.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef DWARF_LOADING_STATE_HANDLER
6 #define DWARF_LOADING_STATE_HANDLER
7 
8 
9 #include "ImageDebugLoadingStateHandler.h"
10 
11 
12 namespace BPackageKit {
13 	class BPackageVersion;
14 }
15 
16 
17 class BString;
18 
19 
20 class DwarfLoadingStateHandler : public ImageDebugLoadingStateHandler {
21 public:
22 								DwarfLoadingStateHandler();
23 	virtual						~DwarfLoadingStateHandler();
24 
25 	virtual	bool				SupportsState(
26 									SpecificImageDebugInfoLoadingState* state);
27 
28 	virtual	void				HandleState(
29 									SpecificImageDebugInfoLoadingState* state,
30 									UserInterface* interface);
31 
32 private:
33 			status_t			_GetMatchingDebugInfoPackage(
34 									const BString& debugFileName,
35 									BString& _packageName);
36 
37 			status_t			_GetResolvableName(const BString& debugFileName,
38 									BString& _resolvableName,
39 									BPackageKit::BPackageVersion&
40 										_resolvableVersion);
41 };
42 
43 
44 #endif	// DWARF_LOADING_STATE_HANDLER_H
45