Subversion Repositories HelenOS-historic

Rev

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

Rev 596 Rev 602
Line 356... Line 356...
356
        printf("Duplicate symbol, be more specific.\n");
356
        printf("Duplicate symbol, be more specific.\n");
357
    } else {
357
    } else {
358
        symbol = get_symtab_entry(symaddr);
358
        symbol = get_symtab_entry(symaddr);
359
        printf("Calling f(): 0x%p: %s\n", symaddr, symbol);
359
        printf("Calling f(): 0x%p: %s\n", symaddr, symbol);
360
        f =  (__native (*)(void)) symaddr;
360
        f =  (__native (*)(void)) symaddr;
361
        printf("Result: 0x%X\n", f());
361
        printf("Result: 0x%p\n", f());
362
    }
362
    }
363
   
363
   
364
    return 1;
364
    return 1;
365
}
365
}
366
 
366
 
Line 380... Line 380...
380
        printf("Duplicate symbol, be more specific.\n");
380
        printf("Duplicate symbol, be more specific.\n");
381
    } else {
381
    } else {
382
        symbol = get_symtab_entry(symaddr);
382
        symbol = get_symtab_entry(symaddr);
383
        printf("Calling f(0x%x): 0x%p: %s\n", arg1, symaddr, symbol);
383
        printf("Calling f(0x%x): 0x%p: %s\n", arg1, symaddr, symbol);
384
        f =  (__native (*)(__native)) symaddr;
384
        f =  (__native (*)(__native)) symaddr;
385
        printf("Result: 0x%x\n", f(arg1));
385
        printf("Result: 0x%p\n", f(arg1));
386
    }
386
    }
387
   
387
   
388
    return 1;
388
    return 1;
389
}
389
}
390
 
390
 
Line 406... Line 406...
406
    } else {
406
    } else {
407
        symbol = get_symtab_entry(symaddr);
407
        symbol = get_symtab_entry(symaddr);
408
        printf("Calling f(0x%x,0x%x): 0x%p: %s\n",
408
        printf("Calling f(0x%x,0x%x): 0x%p: %s\n",
409
               arg1, arg2, symaddr, symbol);
409
               arg1, arg2, symaddr, symbol);
410
        f =  (__native (*)(__native,__native)) symaddr;
410
        f =  (__native (*)(__native,__native)) symaddr;
411
        printf("Result: 0x%x\n", f(arg1, arg2));
411
        printf("Result: 0x%p\n", f(arg1, arg2));
412
    }
412
    }
413
   
413
   
414
    return 1;
414
    return 1;
415
}
415
}
416
 
416
 
Line 433... Line 433...
433
    } else {
433
    } else {
434
        symbol = get_symtab_entry(symaddr);
434
        symbol = get_symtab_entry(symaddr);
435
        printf("Calling f(0x%x,0x%x, 0x%x): 0x%p: %s\n",
435
        printf("Calling f(0x%x,0x%x, 0x%x): 0x%p: %s\n",
436
               arg1, arg2, arg3, symaddr, symbol);
436
               arg1, arg2, arg3, symaddr, symbol);
437
        f =  (__native (*)(__native,__native,__native)) symaddr;
437
        f =  (__native (*)(__native,__native,__native)) symaddr;
438
        printf("Result: 0x%x\n", f(arg1, arg2, arg3));
438
        printf("Result: 0x%p\n", f(arg1, arg2, arg3));
439
    }
439
    }
440
   
440
   
441
    return 1;
441
    return 1;
442
}
442
}
443
 
443