mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Make process_lookup_symbol() return a string. Delete
2006-08-20 Soren Sandmann <sandmann@daimi.au.dk> * process.h: Make process_lookup_symbol() return a string. Delete process_lookup_symbol_with_filename(). * process.c (struct Process): Make "undefined" a string (lookup_kernel_symbol): Return a string (process_lookup_symbol): Return a string, not a symbol * collector.c (unique_dup): Take a string instead of a Symbol. (lookup_symbol): Make sym a string instead of a Symbol. * binfile.c (bin_symbol_get_name): New function. * binfile.[ch] (struct BinSymbol): Rename Symbol to BinSymbol and make it an opaque structure. * binfile.[ch]: Remove unused symbol operations
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
7d8f3c232d
commit
a880ee7f60
16
binfile.h
16
binfile.h
@ -28,27 +28,17 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef struct BinFile BinFile;
|
||||
typedef struct Symbol Symbol;
|
||||
typedef struct BinSymbol BinSymbol;
|
||||
|
||||
/* Binary File */
|
||||
|
||||
BinFile * bin_file_new (const char *filename);
|
||||
void bin_file_free (BinFile *bin_file);
|
||||
const Symbol *bin_file_lookup_symbol (BinFile *bin_file,
|
||||
const BinSymbol *bin_file_lookup_symbol (BinFile *bin_file,
|
||||
gulong address);
|
||||
ino_t bin_file_get_inode (BinFile *bin_file);
|
||||
|
||||
/* Symbol */
|
||||
struct Symbol
|
||||
{
|
||||
char * name;
|
||||
gulong address;
|
||||
};
|
||||
|
||||
Symbol * symbol_copy (const Symbol *orig);
|
||||
gboolean symbol_equal (const void *syma,
|
||||
const void *symb);
|
||||
guint symbol_hash (const void *sym);
|
||||
void symbol_free (Symbol *symbol);
|
||||
const char * bin_symbol_get_name (const BinSymbol *symbol);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user