From 9dce79360bc514c5290a98ef039010b8ba3cc1a8 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Wed, 1 May 2013 20:05:52 -0400 Subject: [PATCH] DwarfFile: Add hook to query availability of frame unwind info. --- src/apps/debugger/dwarf/DwarfFile.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apps/debugger/dwarf/DwarfFile.h b/src/apps/debugger/dwarf/DwarfFile.h index 458180c8f5..52575c3732 100644 --- a/src/apps/debugger/dwarf/DwarfFile.h +++ b/src/apps/debugger/dwarf/DwarfFile.h @@ -1,6 +1,6 @@ /* * 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. */ #ifndef DWARF_FILE_H @@ -39,6 +39,10 @@ public: const char* Name() const { return fName; } ElfFile* GetElfFile() const { return fElfFile; } + bool HasFrameInformation() const + { return fDebugFrameSection != NULL + || fEHFrameSection != NULL; } + int32 CountCompilationUnits() const; CompilationUnit* CompilationUnitAt(int32 index) const; CompilationUnit* CompilationUnitForDIE(