sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
| 3 | /*--- Reading of syms & debug info from PDB-format files. ---*/ |
| 4 | /*--- priv_readpdb.h ---*/ |
| 5 | /*--------------------------------------------------------------------*/ |
| 6 | |
| 7 | /* |
| 8 | This file is part of Valgrind, a dynamic binary instrumentation |
| 9 | framework. |
| 10 | Spring 2008: |
| 11 | derived from readelf.c and valgrind-20031012-wine/vg_symtab2.c |
| 12 | derived from wine-1.0/tools/winedump/pdb.c and msc.c |
| 13 | |
sewardj | 03f8d3f | 2012-08-05 15:46:46 +0000 | [diff] [blame] | 14 | Copyright (C) 2000-2012 Julian Seward |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 15 | jseward@acm.org |
| 16 | |
| 17 | This program is free software; you can redistribute it and/or |
| 18 | modify it under the terms of the GNU General Public License as |
| 19 | published by the Free Software Foundation; either version 2 of the |
| 20 | License, or (at your option) any later version. |
| 21 | |
| 22 | This program is distributed in the hope that it will be useful, but |
| 23 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 25 | General Public License for more details. |
| 26 | |
| 27 | You should have received a copy of the GNU General Public License |
| 28 | along with this program; if not, write to the Free Software |
| 29 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 30 | 02111-1307, USA. |
| 31 | |
| 32 | The GNU General Public License is contained in the file COPYING. |
| 33 | */ |
| 34 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 35 | #if defined(VGO_linux) || defined(VGO_darwin) |
| 36 | |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 37 | #ifndef __PRIV_READPDB_H |
| 38 | #define __PRIV_READPDB_H |
| 39 | |
| 40 | /* Returns True if OK, False for any kind of failure. */ |
| 41 | extern Bool ML_(read_pdb_debug_info)( |
| 42 | DebugInfo* di, |
| 43 | Addr obj_avma, |
sewardj | 54c45db | 2012-07-13 12:58:55 +0000 | [diff] [blame] | 44 | PtrdiffT obj_bias, |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 45 | void* pdbimage, |
| 46 | SizeT n_pdbimage, |
florian | 1636d33 | 2012-11-15 04:27:04 +0000 | [diff] [blame^] | 47 | HChar* pdbname, |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 48 | ULong pdbmtime |
| 49 | ); |
| 50 | |
sewardj | 13ac96d | 2010-02-12 12:12:39 +0000 | [diff] [blame] | 51 | /* Finds the name of the PDB file that's embedded with the specified |
| 52 | PE file, or NULL on failure. Caller deallocates with |
| 53 | ML_(dinfo_free). */ |
| 54 | HChar* ML_(find_name_of_pdb_file)( HChar* pename ); |
| 55 | |
| 56 | |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 57 | #endif /* ndef __PRIV_READPDB_H */ |
| 58 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 59 | #endif // defined(VGO_linux) || defined(VGO_darwin) |
| 60 | |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 61 | /*--------------------------------------------------------------------*/ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 62 | /*--- end ---*/ |
sewardj | c8259b8 | 2009-04-22 22:42:10 +0000 | [diff] [blame] | 63 | /*--------------------------------------------------------------------*/ |