Bug 497723 - improve filter
[valgrind.git] / coregrind / m_debuginfo / priv_readmacho.h
blobb5172878ce4445bbb29f8a436d05ed101bd8d137
2 /*--------------------------------------------------------------------*/
3 /*--- Reading of syms & debug info from Mach-O files. ---*/
4 /*--- priv_readmacho.h ---*/
5 /*--------------------------------------------------------------------*/
7 /*
8 This file is part of Valgrind, a dynamic binary instrumentation
9 framework.
11 Copyright (C) 2006 Apple Inc.
12 Greg Parker gparker@apple.com
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation; either version 2 of the
17 License, or (at your option) any later version.
19 This program is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, see <http://www.gnu.org/licenses/>.
27 The GNU General Public License is contained in the file COPYING.
30 #ifndef __PRIV_READMACHO_H
31 #define __PRIV_READMACHO_H
33 #include "pub_core_basics.h" // SizeT
34 #include "pub_core_debuginfo.h" // DebugInfo
36 /* Identify a Mach-O object file by peering at the first few bytes of
37 it. Also count the number of RW segements. */
38 extern Bool ML_(check_macho_and_get_rw_loads)( const void* buf, SizeT size, Int* rw_loads );
40 /* The central function for reading Mach-O debug info. For the
41 object/exe specified by the DebugInfo, find Mach-O sections, then read
42 the symbols, line number info, file name info, CFA (stack-unwind
43 info) and anything else we want, into the tables within the
44 supplied DebugInfo.
46 extern Bool ML_(read_macho_debug_info) ( DebugInfo* si );
49 #endif /* ndef __PRIV_READMACHO_H */
51 /*--------------------------------------------------------------------*/
52 /*--- end ---*/
53 /*--------------------------------------------------------------------*/