Changeset d0da921 in mainline
- Timestamp:
- 2006-03-12T16:50:33Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c102a5c8
- Parents:
- cfad878
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/kconsole.c
rcfad878 rd0da921 429 429 430 430 /* If we get a name, try to find it in symbol table */ 431 if (text[0] == '&') { 432 isaddr = true; 433 text++;len--; 434 } else if (text[0] == '*') { 435 isptr = true; 436 text++;len--; 437 } 431 438 if (text[0] < '0' || text[0] > '9') { 432 if (text[0] == '&') {433 isaddr = true;434 text++;len--;435 } else if (text[0] == '*') {436 isptr = true;437 text++;len--;438 }439 439 strncpy(symname, text, min(len+1, MAX_SYMBOL_NAME)); 440 440 symaddr = get_symbol_addr(symname); … … 448 448 return -1; 449 449 } 450 if (isaddr)451 *result = (__native)symaddr;452 else if (isptr)453 *result = **((__native **)symaddr);454 else455 *result = *((__native *)symaddr);456 450 } else /* It's a number - convert it */ 457 451 *result = atoi(text); 452 453 if (isaddr) 454 *result = (__native)symaddr; 455 else if (isptr) 456 *result = **((__native **)symaddr); 457 else 458 *result = *((__native *)symaddr); 459 458 460 return 0; 459 461 }
Note:
See TracChangeset
for help on using the changeset viewer.