| 196 | } |
| 197 | |
| 198 | static 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 | |
| 221 | static void init_sym_table() |
| 222 | { |
no test coverage detected