summaryrefslogtreecommitdiff
path: root/src/format/elf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-06-01 11:37:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-06-01 11:37:31 (GMT)
commit1b8152d6f95b03f81aa6a4043c23a45a9f74c418 (patch)
treea7b625acaee0b9584f3b2b6aa49bd507b652bd5c /src/format/elf
parent8724afdc73e0ddad86f46de1a3fbe0254575a76e (diff)
Changed the old bin_routine structure to a GBinRoutine GObject.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@68 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/elf')
-rw-r--r--src/format/elf/e_elf.c10
-rw-r--r--src/format/elf/e_elf.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/format/elf/e_elf.c b/src/format/elf/e_elf.c
index b5e3406..373df2b 100644
--- a/src/format/elf/e_elf.c
+++ b/src/format/elf/e_elf.c
@@ -576,14 +576,14 @@ bool resolve_elf_symbol(const elf_format *format, char **label, SymbolType *type
* *
******************************************************************************/
-bin_routine **get_all_elf_routines(const elf_format *format, size_t *count)
+GBinRoutine **get_all_elf_routines(const elf_format *format, size_t *count)
{
- bin_routine **result; /* Tableau à retourner */
+ GBinRoutine **result; /* Tableau à retourner */
size_t i; /* Boucle de parcours */
- result = (bin_routine **)calloc(format->sym_count, sizeof(bin_routine *));
+ result = (GBinRoutine **)calloc(format->sym_count, sizeof(GBinRoutine *));
*count = format->sym_count;
-
+ /*
for (i = 0; i < format->sym_count; i++)
{
result[i] = create_binary_routine();
@@ -592,7 +592,7 @@ bin_routine **get_all_elf_routines(const elf_format *format, size_t *count)
set_binary_routine_name(result[i], strdup(format->symbols[i].name));
}
-
+ */
return result;
}
diff --git a/src/format/elf/e_elf.h b/src/format/elf/e_elf.h
index f0c2c12..9327fe6 100644
--- a/src/format/elf/e_elf.h
+++ b/src/format/elf/e_elf.h
@@ -56,7 +56,7 @@ size_t get_elf_symbols(const elf_format *, char ***, SymbolType **, uint64_t **)
bool resolve_elf_symbol(const elf_format *, char **, SymbolType *, uint64_t *);
/* Fournit le prototype de toutes les routines détectées. */
-bin_routine **get_all_elf_routines(const elf_format *, size_t *);
+GBinRoutine **get_all_elf_routines(const elf_format *, size_t *);