summaryrefslogtreecommitdiff
path: root/binfile.h
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@redhat.com>2006-03-04 03:28:26 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2006-03-04 03:28:26 +0000
commitebb772876861246dfe3fd05c3078f6884a38fa27 (patch)
treeff11dc121018f9a00cd7235cba80cc6659641ee5 /binfile.h
parent0d6d997f4a57a44701542830aacf848f6e151dcc (diff)
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.
Diffstat (limited to 'binfile.h')
-rw-r--r--binfile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/binfile.h b/binfile.h
index f26b15b..d3f643f 100644
--- a/binfile.h
+++ b/binfile.h
@@ -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