Changeset 08e103d4 in mainline for kernel/generic/src/debug
- Timestamp:
- 2019-02-05T18:26:05Z (7 years ago)
- Children:
- 1d2f85e
- Parents:
- d066259
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
- File:
-
- 1 edited
-
kernel/generic/src/debug/symtab.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/debug/symtab.c
rd066259 r08e103d4 120 120 static const char *symtab_search_one(const char *name, size_t *startpos) 121 121 { 122 size_t namelen = str_ length(name);122 size_t namelen = str_code_points(name); 123 123 124 124 size_t pos; … … 131 131 continue; 132 132 133 if (str_ length(curname) < namelen)133 if (str_code_points(curname) < namelen) 134 134 continue; 135 135 136 136 if (str_lcmp(name, curname, namelen) == 0) { 137 137 *startpos = pos; 138 return (curname + str_l size(curname, namelen));138 return (curname + str_lbytes(curname, namelen)); 139 139 } 140 140 } … … 164 164 165 165 while ((hint = symtab_search_one(name, &pos))) { 166 if (str_ length(hint) == 0) {166 if (str_code_points(hint) == 0) { 167 167 *addr = uint64_t_le2host(symbol_table[pos].address_le); 168 168 found++; … … 206 206 { 207 207 #ifdef CONFIG_SYMTAB 208 size_t len = str_ length(input);208 size_t len = str_code_points(input); 209 209 struct symtab_entry **entry = (struct symtab_entry **)ctx; 210 210 … … 220 220 continue; 221 221 222 if (str_ length(curname) < len)222 if (str_code_points(curname) < len) 223 223 continue; 224 224 … … 227 227 if (help) 228 228 *help = NULL; 229 return (curname + str_l size(curname, len));229 return (curname + str_lbytes(curname, len)); 230 230 } 231 231 }
Note:
See TracChangeset
for help on using the changeset viewer.
