GDB (API)
/home/stan/gdb/src/gdb/build-id.h
Go to the documentation of this file.
00001 /* build-id-related functions.
00002 
00003    Copyright (C) 1991-2013 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 3 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 #ifndef BUILD_ID_H
00021 #define BUILD_ID_H
00022 
00023 /* Return true if ABFD has NT_GNU_BUILD_ID matching the CHECK value.
00024    Otherwise, issue a warning and return false.  */
00025 
00026 extern int build_id_verify (bfd *abfd,
00027                             size_t check_len, const bfd_byte *check);
00028 
00029 
00030 /* Find and open a BFD given a build-id.  If no BFD can be found,
00031    return NULL.  The returned reference to the BFD must be released by
00032    the caller.  */
00033 
00034 extern bfd *build_id_to_debug_bfd (size_t build_id_len,
00035                                    const bfd_byte *build_id);
00036 
00037 /* Find the separate debug file for OBJFILE, by using the build-id
00038    associated with OBJFILE's BFD.  If successful, returns a malloc'd
00039    file name for the separate debug file.  The caller must free this.
00040    Otherwise, returns NULL.  */
00041 
00042 extern char *find_separate_debug_file_by_buildid (struct objfile *objfile);
00043 
00044 #endif /* BUILD_ID_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines