extsup.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*++
  2. Copyright (c) 2013 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. extsup.c
  5. Abstract:
  6. This module implements OS-specific support routines for using debugger
  7. extensions.
  8. Author:
  9. Evan Green 27-May-2013
  10. Environment:
  11. Debug Client
  12. --*/
  13. //
  14. // ------------------------------------------------------------------- Includes
  15. //
  16. #include <stdio.h>
  17. #include <minoca/lib/types.h>
  18. #include <minoca/lib/status.h>
  19. #include <minoca/debug/dbgext.h>
  20. //
  21. // ---------------------------------------------------------------- Definitions
  22. //
  23. //
  24. // ------------------------------------------------------ Data Type Definitions
  25. //
  26. //
  27. // ----------------------------------------------- Internal Function Prototypes
  28. //
  29. //
  30. // -------------------------------------------------------------------- Globals
  31. //
  32. //
  33. // ------------------------------------------------------------------ Functions
  34. //
  35. ULONG
  36. DbgLoadLibrary (
  37. PSTR BinaryName
  38. )
  39. /*++
  40. Routine Description:
  41. This routine loads a shared library.
  42. Arguments:
  43. BinaryName - Supplies the name of the binary to load.
  44. Return Value:
  45. Returns a non-zero handle on success.
  46. 0 on failure.
  47. --*/
  48. {
  49. DbgOut("Error: Loading of extensions not yet supported!\n");
  50. return 0;
  51. }
  52. VOID
  53. DbgFreeLibrary (
  54. ULONG Handle
  55. )
  56. /*++
  57. Routine Description:
  58. This routine unloads a shared library.
  59. Arguments:
  60. Handle - Supplies the handle to to the loaded library.
  61. Return Value:
  62. None.
  63. --*/
  64. {
  65. DbgOut("Error: Unloading of extensions not yet supported!\n");
  66. return;
  67. }
  68. PVOID
  69. DbgGetProcedureAddress (
  70. ULONG Handle,
  71. PSTR ProcedureName
  72. )
  73. /*++
  74. Routine Description:
  75. This routine gets the address of a routine in a loaded shared library (DLL).
  76. Arguments:
  77. Handle - Supplies the handle to to the loaded library.
  78. ProcedureName - Supplies the name of the procedure to look up.
  79. Return Value:
  80. Returns a pointer to the procedure on success.
  81. NULL on failure.
  82. --*/
  83. {
  84. DbgOut("Error: DbgGetProcedureAddress not yet supported!\n");
  85. return NULL;
  86. }
  87. //
  88. // --------------------------------------------------------- Internal Functions
  89. //