123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- /*++
- Copyright (c) 2013 Minoca Corp. All Rights Reserved
- Module Name:
- extsup.c
- Abstract:
- This module implements OS-specific support routines for using debugger
- extensions.
- Author:
- Evan Green 27-May-2013
- Environment:
- Debug Client
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- #include <stdio.h>
- #include <minoca/lib/types.h>
- #include <minoca/lib/status.h>
- #include <minoca/debug/dbgext.h>
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- //
- // ----------------------------------------------- Internal Function Prototypes
- //
- //
- // -------------------------------------------------------------------- Globals
- //
- //
- // ------------------------------------------------------------------ Functions
- //
- ULONG
- DbgLoadLibrary (
- PSTR BinaryName
- )
- /*++
- Routine Description:
- This routine loads a shared library.
- Arguments:
- BinaryName - Supplies the name of the binary to load.
- Return Value:
- Returns a non-zero handle on success.
- 0 on failure.
- --*/
- {
- DbgOut("Error: Loading of extensions not yet supported!\n");
- return 0;
- }
- VOID
- DbgFreeLibrary (
- ULONG Handle
- )
- /*++
- Routine Description:
- This routine unloads a shared library.
- Arguments:
- Handle - Supplies the handle to to the loaded library.
- Return Value:
- None.
- --*/
- {
- DbgOut("Error: Unloading of extensions not yet supported!\n");
- return;
- }
- PVOID
- DbgGetProcedureAddress (
- ULONG Handle,
- PSTR ProcedureName
- )
- /*++
- Routine Description:
- This routine gets the address of a routine in a loaded shared library (DLL).
- Arguments:
- Handle - Supplies the handle to to the loaded library.
- ProcedureName - Supplies the name of the procedure to look up.
- Return Value:
- Returns a pointer to the procedure on success.
- NULL on failure.
- --*/
- {
- DbgOut("Error: DbgGetProcedureAddress not yet supported!\n");
- return NULL;
- }
- //
- // --------------------------------------------------------- Internal Functions
- //
|