MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / init_sym_entry

Function init_sym_entry

extra/resolve_stack_dump.c:198–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static int init_sym_entry(SYM_ENTRY* se, char* buf)
199{
200 char* p, *p_end;
201 se->addr = (uchar*)read_addr(&buf);
202
203 if (!se->addr)
204 return -1;
205 while (my_isspace(&my_charset_latin1,*buf++))
206 /* empty */;
207
208 while (my_isspace(&my_charset_latin1,*buf++))
209 /* empty - skip more space */;
210 --buf;
211 /* now we are on the symbol */
212 for (p = se->symbol, p_end = se->symbol + sizeof(se->symbol) - 1;
213 *buf != '\n' && *buf && p < p_end; ++buf,++p)
214 *p = *buf;
215 *p = 0;
216 if (!strcmp(se->symbol, "gcc2_compiled."))
217 return -1;
218 return 0;
219}
220
221static void init_sym_table()
222{

Callers 1

init_sym_tableFunction · 0.85

Calls 1

read_addrFunction · 0.85

Tested by

no test coverage detected