Check that the inodes match.

Fri Mar  3 22:28:03 2006  Soeren Sandmann  <sandmann@redhat.com>

        * process.c (process_lookup_symbol): Check that the inodes match.

        * binfile.c (read_symbols): Read the inode of the file

        * binfile.c (read_symbols): Close the bfd if the symbol table
        could not be read.
This commit is contained in:
Soeren Sandmann
2006-03-04 03:28:26 +00:00
committed by Søren Sandmann Pedersen
parent 0d6d997f4a
commit ebb7728768
7 changed files with 85 additions and 13 deletions

View File

@ -25,6 +25,7 @@
#define BIN_FILE_H
#include <glib.h>
#include <sys/types.h>
typedef struct BinFile BinFile;
typedef struct Symbol Symbol;
@ -35,6 +36,7 @@ BinFile * bin_file_new (const char *filename);
void bin_file_free (BinFile *bin_file);
const Symbol *bin_file_lookup_symbol (BinFile *bin_file,
gulong address);
ino_t bin_file_get_inode (BinFile *bin_file);
/* Symbol */
struct Symbol