Changeset e5fcf00 in mainline


Ignore:
Timestamp:
2005-12-10T17:07:36Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7a8c866a
Parents:
e8a9dc3
Message:

Added * operator to symbols.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/console/kconsole.c

    re8a9dc3 re5fcf00  
    325325        __address symaddr;
    326326        bool isaddr = false;
     327        bool isptr = false;
    327328       
    328329        /* If we get a name, try to find it in symbol table */
     
    331332                        isaddr = true;
    332333                        text++;len--;
     334                } else if (text[0] == '*') {
     335                        isptr = true;
     336                        text++;len--;
    333337                }
    334338                strncpy(symname, text, min(len+1, MAX_SYMBOL_NAME));
     
    345349                if (isaddr)
    346350                        *result = (__native)symaddr;
     351                else if (isptr)
     352                        *result = **((__native **)symaddr);
    347353                else
    348354                        *result = *((__native *)symaddr);
Note: See TracChangeset for help on using the changeset viewer.