2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Copyright 2014, Rene Gollent, rene@gollent.com.
4 * Distributed under the terms of the MIT License.
6 #ifndef DWARF_MANAGER_H
7 #define DWARF_MANAGER_H
11 #include <util/DoublyLinkedList.h>
15 struct DwarfFileLoadingState
;
20 DwarfManager(uint8 addressSize
);
25 bool Lock() { return fLock
.Lock(); }
26 void Unlock() { fLock
.Unlock(); }
28 status_t
LoadFile(const char* fileName
,
29 DwarfFileLoadingState
& _loadingState
);
30 // _loadingState receives a reference
31 // to the corresponding DwarfFile.
33 status_t
FinishLoading();
36 typedef DoublyLinkedList
<DwarfFile
> FileList
;
46 #endif // DWARF_MANAGER_H