Subversion Repositories HelenOS

Rev

Rev 4263 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4263 Rev 4327
Line 118... Line 118...
118
   
118
   
119
    count_t pos;
119
    count_t pos;
120
    for (pos = *startpos; symbol_table[pos].address_le; pos++) {
120
    for (pos = *startpos; symbol_table[pos].address_le; pos++) {
121
        const char *curname = symbol_table[pos].symbol_name;
121
        const char *curname = symbol_table[pos].symbol_name;
122
       
122
       
123
        /* Find a ':' in name */
123
        /* Find a ':' in curname */
124
        const char *colon = str_chr(curname, ':');
124
        const char *colon = str_chr(curname, ':');
125
        if (colon == NULL)
125
        if (colon == NULL)
126
            continue;
126
            continue;
127
       
127
       
128
        if (str_length(curname) < namelen)
128
        if (str_length(curname) < namelen)
Line 223... Line 223...
223
   
223
   
224
    output[0] = 0;
224
    output[0] = 0;
225
   
225
   
226
    while ((hint = symtab_search_one(name, &pos))) {
226
    while ((hint = symtab_search_one(name, &pos))) {
227
        if ((found == 0) || (str_length(output) > str_length(hint)))
227
        if ((found == 0) || (str_length(output) > str_length(hint)))
228
            str_ncpy(output, hint, MAX_SYMBOL_NAME);
228
            str_cpy(output, MAX_SYMBOL_NAME, hint);
229
       
229
       
230
        pos++;
230
        pos++;
231
        found++;
231
        found++;
232
    }
232
    }
233
   
233
   
Line 239... Line 239...
239
            pos++;
239
            pos++;
240
        }
240
        }
241
    }
241
    }
242
   
242
   
243
    if (found > 0)
243
    if (found > 0)
244
        str_ncpy(input, output, size);
244
        str_cpy(input, size, output);
245
   
245
   
246
    return found;
246
    return found;
247
   
247
   
248
#else
248
#else
249
    return 0;
249
    return 0;