Changeset 2849 for trunk/kLdr/kLdrMod.c


Ignore:
Timestamp:
Nov 2, 2006, 3:05:16 AM (19 years ago)
Author:
bird
Message:

Debug info query.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrMod.c

    r2848 r2849  
    308308
    309309/**
    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 */
     320int     kLdrModEnumDbgInfo(PKLDRMOD pMod, void *pvBits, PFNKLDRENUMDBG pfnCallback, void *pvUser)
    316321{
    317322    return 0;
     323}
     324
     325
     326/**
     327 * Checks if the module has debug info embedded or otherwise associated with it.
     328 *
     329 * @returns 0 if it has debug info, KLDR_ERR_NO_DEBUG_INFO if no debug info,
     330 *          and non-zero OS or kLdr status code on failure.
     331 * @param   pMod            The module.
     332 * @param   pvBits          Optional pointer to bits returned by kLdrModGetBits().
     333 *                          This can be used by some module interpreters to reduce memory consumption.
     334 */
     335int     kLdrModHasDbgInfo(PKLDRMOD pMod, void *pvBits)
     336{
     337    return -1;
    318338}
    319339
     
    445465 */
    446466int     kLdrModCallThread(PKLDRMOD pMod, unsigned fAttachingOrDetaching)
     467{
     468    return 0;
     469}
     470
     471
     472/**
     473 * Get the size of the mapped module.
     474 *
     475 * @returns The size of the mapped module (in bytes).
     476 * @param   pMod            The module.
     477 */
     478size_t  kLdrModSize(PKLDRMOD pMod)
    447479{
    448480    return 0;
     
    488520}
    489521
    490 
    491 
Note: See TracChangeset for help on using the changeset viewer.