Changeset 98000fb in mainline for kernel/generic/src/debug/symtab.c
- Timestamp:
- 2009-06-03T19:34:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/debug/symtab.c
r69e68e3 r98000fb 56 56 { 57 57 #ifdef CONFIG_SYMTAB 58 count_t i;58 size_t i; 59 59 60 60 for (i = 1; symbol_table[i].address_le; i++) { … … 113 113 * 114 114 */ 115 static const char *symtab_search_one(const char *name, count_t *startpos)116 { 117 count_t namelen = str_length(name);118 119 count_t pos;115 static const char *symtab_search_one(const char *name, size_t *startpos) 116 { 117 size_t namelen = str_length(name); 118 119 size_t pos; 120 120 for (pos = *startpos; symbol_table[pos].address_le; pos++) { 121 121 const char *curname = symbol_table[pos].symbol_name; … … 154 154 { 155 155 #ifdef CONFIG_SYMTAB 156 count_t found = 0;157 count_t pos = 0;156 size_t found = 0; 157 size_t pos = 0; 158 158 const char *hint; 159 159 … … 183 183 { 184 184 #ifdef CONFIG_SYMTAB 185 count_t pos = 0;185 size_t pos = 0; 186 186 while (symtab_search_one(name, &pos)) { 187 187 uintptr_t addr = uint64_t_le2host(symbol_table[pos].address_le); … … 204 204 * 205 205 */ 206 int symtab_compl(char *input, count_t size)206 int symtab_compl(char *input, size_t size) 207 207 { 208 208 #ifdef CONFIG_SYMTAB … … 217 217 return 0; 218 218 219 count_t found = 0;220 count_t pos = 0;219 size_t found = 0; 220 size_t pos = 0; 221 221 const char *hint; 222 222 char output[MAX_SYMBOL_NAME];
Note:
See TracChangeset
for help on using the changeset viewer.