Fix bug where the build id name was generated incorrectly.

2008-05-07  Soren Sandmann Pedersen  <sandmann@daimi.au.dk>

	* binfile.c (get_build_id_file): Fix bug where the build id name
	was generated incorrectly. 

	Make a copy of the debug name, not the input name.


svn path=/trunk/; revision=418
This commit is contained in:
Soren Sandmann Pedersen
2008-05-08 00:17:13 +00:00
committed by Søren Sandmann Pedersen
parent 1d1d5dd945
commit 282783bf2b
4 changed files with 19 additions and 3 deletions

View File

@ -618,7 +618,13 @@ elf_parser_lookup_symbol (ElfParser *parser,
parser->parser, parser->sym_format, "st_size");
if (size > 0 && result->address + size <= address)
{
#if 0
g_print (" elf: ends at %lx, so rejecting\n",
result->address + size);
#endif
result = NULL;
}
}
if (result)