Changeset 2849
- Timestamp:
- Nov 2, 2006, 3:05:16 AM (19 years ago)
- Location:
- trunk/kLdr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdr.h
r2848 r2849 281 281 /** @defgroup grp_kLdrMod kLdrMod - The executable image intepreter 282 282 * @{ */ 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 283 310 284 311 /** … … 433 460 } KLDRARCH; 434 461 462 435 463 /** 436 464 * CPU models. … … 607 635 * 608 636 * @returns 0 if enumeration should continue. 609 * @returns non-zero if the enumeration should stop. This status code is the returned by kLdrModEnumSymbols().637 * @returns non-zero if the enumeration should stop. This status code e returned by kLdrModEnumSymbols(). 610 638 * 611 639 * @param pMod The module which symbols are being enumerated.s … … 622 650 /** Pointer to a symbol enumerator callback. */ 623 651 typedef FNKLDRMODENUMSYMS *PFNKLDRMODENUMSYMS; 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 624 672 625 673 int kLdrModOpen(const char *pszFilename, PPKLDRMOD ppMod); … … 637 685 int kLdrModGetStackInfo(PKLDRMOD pMod, void *pvBits, KLDRADDR BaseAddress, PKLDRSTACKINFO pStackInfo); 638 686 int kLdrModQueryMainEntrypoint(PKLDRMOD pMod, void *pvBits, KLDRADDR BaseAddress, PKLDRADDR pMainEPAddress); 639 size_t kLdrModSize(PKLDRMOD pMod); 687 /** Pointer to a debug info enumberator callback. */ 688 typedef FNKLDRENUMDBG *PFNKLDRENUMDBG; 689 int kLdrModEnumDbgInfo(PKLDRMOD pMod, void *pvBits, PFNKLDRENUMDBG pfnCallback, void *pvUser); 690 int kLdrModHasDbgInfo(PKLDRMOD pMod, void *pvBits); 640 691 641 692 /** @name Operations On The Internally Managed Mapping … … 654 705 /** @name Operations On The Externally Managed Mappings 655 706 * @{ */ 707 656 708 int kLdrModGetBits(PKLDRMOD pMod, void *pvBits, KLDRADDR BaseAddress, PFNKLDRMODGETIMPORT pfnGetImport, void *pvUser); 657 709 int kLdrModRelocateBits(PKLDRMOD pMod, void *pvBits, KLDRADDR NewBaseAddress, KLDRADDR OldBaseAddress, 658 710 PFNKLDRMODGETIMPORT pfnGetImport, void *pvUser); 659 711 /** @} */ 712 660 713 661 714 /** @} */ -
trunk/kLdr/kLdrMod.c
r2848 r2849 308 308 309 309 /** 310 * Get the size of the mapped module. 311 * 312 * @returns The size of the mapped module (in bytes). 313 * @param pMod The module. 314 */ 315 size_t kLdrModSize(PKLDRMOD pMod) 310 * Enumerate the debug info formats contained in the executable image. 311 * 312 * @returns 0 on success, non-zero OS or kLdr status code on failure, or non-zero callback status. 313 * @param pMod The module. 314 * @param pvBits Optional pointer to bits returned by kLdrModGetBits(). 315 * This can be used by some module interpreters to reduce memory consumption. 316 * @param pfnCallback The callback function. 317 * @param pvUser The user argument. 318 * @see pg_kDbg for the debug info reader. 319 */ 320 int kLdrModEnumDbgInfo(PKLDRMOD pMod, void *pvBits, PFNKLDRENUMDBG pfnCallback, void *pvUser) 316 321 { 317 322 return 0; 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 318 338 } 319 339 … … 445 465 */ 446 466 int kLdrModCallThread(PKLDRMOD pMod, unsigned fAttachingOrDetaching) 467 468 469 470 471 472 473 474 475 476 477 478 447 479 { 448 480 return 0; … … 488 520 } 489 521 490 491
Note:
See TracChangeset
for help on using the changeset viewer.
