DwarfFile: Add hook to query availability of frame unwind info.

This commit is contained in:
Rene Gollent 2013-05-01 20:05:52 -04:00
parent 99fac5a9dc
commit 9dce79360b

View File

@ -1,6 +1,6 @@
/* /*
* Copyright 2009-2010, Ingo Weinhold, ingo_weinhold@gmx.de. * Copyright 2009-2010, Ingo Weinhold, ingo_weinhold@gmx.de.
* Copyright 2012, Rene Gollent, rene@gollent.com. * Copyright 2012-2013, Rene Gollent, rene@gollent.com.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
#ifndef DWARF_FILE_H #ifndef DWARF_FILE_H
@ -39,6 +39,10 @@ public:
const char* Name() const { return fName; } const char* Name() const { return fName; }
ElfFile* GetElfFile() const { return fElfFile; } ElfFile* GetElfFile() const { return fElfFile; }
bool HasFrameInformation() const
{ return fDebugFrameSection != NULL
|| fEHFrameSection != NULL; }
int32 CountCompilationUnits() const; int32 CountCompilationUnits() const;
CompilationUnit* CompilationUnitAt(int32 index) const; CompilationUnit* CompilationUnitAt(int32 index) const;
CompilationUnit* CompilationUnitForDIE( CompilationUnit* CompilationUnitForDIE(