diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-08-19 20:25:20 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-08-19 20:25:20 (GMT) |
commit | 2425953ed7330c8f92ec7d04a5f248db1ed98a9d (patch) | |
tree | f389f040f6bcc9f88d837e0e2f37cbd49758f610 /src/format/format.c | |
parent | a0a7b6c1e05c78ae433f353d15e3366107b67d03 (diff) |
Added a demo symbol when loading an ELF header.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@390 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/format.c')
-rw-r--r-- | src/format/format.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/format/format.c b/src/format/format.c index 4b5dfb5..8771c46 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -193,6 +193,9 @@ const bin_t *g_binary_format_get_content(const GBinFormat *format, off_t *length void g_binary_format_add_symbol(GBinFormat *format, GBinSymbol *symbol) { + + printf("current :: %d (%p)\n", (int)format->symbols_count, format->symbols); + format->symbols = (GBinSymbol **)realloc(format->symbols, ++format->symbols_count * sizeof(GBinSymbol *)); |