Read the name out of the file instead of out of the struct.

2006-08-20  Soren Sandmann  <sandmann@redhat.com>

	* elfparser.c (elf_sym_get_name): Read the name out of the file
	instead of out of the struct.

	* elfparser.c (struct ElfSym): Store an offset instead of the
	name.

	* elfparser.c (all_elf_parsers): Keep track of all elf parsers
	created.
This commit is contained in:
Soren Sandmann
2006-08-20 06:26:54 +00:00
committed by Søren Sandmann Pedersen
parent 6c7afad3ff
commit 49e1fabe46
7 changed files with 96 additions and 12 deletions

View File

@ -324,6 +324,15 @@ bin_parser_index (BinParser *parser,
parser->frame->index = index;
}
gsize
bin_parser_get_offset (BinParser *parser)
{
g_return_val_if_fail (parser != NULL, 0);
g_return_val_if_fail (parser->frame != NULL, 0);
return parser->frame->offset;
}
BinField *
bin_field_new_fixed_array (int n_elements,
int element_size)