Subversion Repositories HelenOS-historic

Rev

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

Rev 931 Rev 932
Line 445... Line 445...
445
        if (symaddr == (__address) -1) {
445
        if (symaddr == (__address) -1) {
446
            printf("Duplicate symbol %s.\n",symname);
446
            printf("Duplicate symbol %s.\n",symname);
447
            symtab_print_search(symname);
447
            symtab_print_search(symname);
448
            return -1;
448
            return -1;
449
        }
449
        }
-
 
450
        if (isaddr)
-
 
451
            *result = (__native)symaddr;
-
 
452
        else if (isptr)
-
 
453
            *result = **((__native **)symaddr);
-
 
454
        else
-
 
455
            *result = *((__native *)symaddr);
450
    } else /* It's a number - convert it */
456
    } else { /* It's a number - convert it */
451
        *result = atoi(text);
457
        *result = atoi(text);
452
 
-
 
453
    if (isaddr)
458
        if (isptr)
454
        *result = (__native)symaddr;
-
 
455
    else if (isptr)
-
 
456
        *result = **((__native **)symaddr);
459
            *result = *((__native *)*result);
457
    else
460
    }
458
        *result = *((__native *)symaddr);
-
 
459
 
461
 
460
    return 0;
462
    return 0;
461
}
463
}
462
 
464
 
463
/** Parse command line.
465
/** Parse command line.