MCPcopy Create free account
hub / github.com/F-Stack/f-stack / linker_debug_search_symbol_name

Function linker_debug_search_symbol_name

freebsd/kern/kern_linker.c:961–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959}
960
961static int
962linker_debug_search_symbol_name(caddr_t value, char *buf, u_int buflen,
963 long *offset)
964{
965 linker_symval_t symval;
966 c_linker_sym_t sym;
967 int error;
968
969 *offset = 0;
970 error = linker_debug_search_symbol(value, &sym, offset);
971 if (error)
972 return (error);
973 error = linker_debug_symbol_values(sym, &symval);
974 if (error)
975 return (error);
976 strlcpy(buf, symval.name, buflen);
977 return (0);
978}
979
980/*
981 * DDB Helpers. DDB has to look across multiple files with their own symbol

Callers 2

Calls 3

strlcpyFunction · 0.50

Tested by

no test coverage detected