#include <elf.h> /* ELF defns */
static Bool
-VG_(intercept_demangle)(const Char*, Char*, Int);
+intercept_demangle(const Char*, Char*, Int);
/* Majorly rewritten Sun 3 Feb 02 to enable loading symbols from
dlopen()ed libraries, which is something that KDE3 does a lot.
VG_INTERCEPT_PREFIX_LEN) == 0) {
int len = VG_(strlen)(si->symtab[i].name);
char *buf = VG_(malloc)(len), *colon;
- VG_(intercept_demangle)(si->symtab[i].name, buf, len);
+ intercept_demangle(si->symtab[i].name, buf, len);
colon = buf + VG_(strlen)(buf) - 1;
while(*colon != ':') colon--;
VG_(strncpy_safely)(si->symtab[i].name, colon+1, len);
*/
static Bool
-VG_(intercept_demangle)(const Char* symbol, Char* result, Int nbytes)
+intercept_demangle(const Char* symbol, Char* result, Int nbytes)
{
int i, j = 0;
int len = VG_(strlen)(symbol);
char *lib = VG_(malloc)(len);
Char *func;
- VG_(intercept_demangle)(symbol, lib, len);
+ intercept_demangle(symbol, lib, len);
func = lib + VG_(strlen)(lib)-1;
while(*func != ':') func--;
}
/*
- * Try and find a seperated debug file for a given object file.
+ * Try to find a separate debug file for a given object file.
*/
static
Addr find_debug_file( Char* objpath, Char* debugname, UInt crc, UInt* size )