Changeset 3528 for trunk/kDbg/kDbgInternal.h
- Timestamp:
- Aug 20, 2007, 4:43:13 AM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kDbg/kDbgInternal.h
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
r3524 r3528 1 /* $Id :$ */1 /* $Id$ */ 2 2 /** @file 3 * 4 * kProfile Mark 2 - Debug Info Reader, Internal Header.5 * 6 * Copyright (c) 2006 knut st. osmundsen <bird-src-spam@anduin.net.de> 7 * 3 * kDbg - The Debug Info Reader, Internal Header. 4 */ 5 6 /* 7 * Copyright (c) 2006-2007 knut st. osmundsen <bird-src-spam@anduin.net> 8 8 * 9 9 * This program is free software; you can redistribute it and/or modify … … 23 23 */ 24 24 25 #ifndef __ internal_DBGInternal_h__26 #define __ internal_DBGInternal_h__25 #ifndef ___kDbgInternal_h___ 26 #define ___kDbgInternal_h___ 27 27 28 #include "dbg.h" 28 #include "kDbgBase.h" 29 #include "kDbgHlp.h" 30 #include "kDbg.h" 29 31 30 __BEGIN_DECLS 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 31 35 32 36 … … 34 38 * The debug module method table. 35 39 */ 36 typedef struct RTDBGMODOPS40 typedef struct KDBGMODOPS 37 41 { 38 42 /** The name of the reader. */ … … 48 52 * @param pMod The module. 49 53 */ 50 DECLCALLBACKMEMBER(int, pfnClose)(PRTDBGMOD pMod);54 int (*pfnClose)(PKDBGMOD pMod); 51 55 52 56 /** … … 63 67 * @param pSym Where to store the symbol details. 64 68 */ 65 DECLCALLBACKMEMBER(int, pfnQuerySymbol)(PRTDBGMOD pMod, int32_t iSegment, RTUINTPTR off, PRTDBGSYMBOL pSym);69 int (*pfnQuerySymbol)(PKDBGMOD pMod, int32_t iSegment, KDBGADDR off, PKDBGSYMBOL pSym); 66 70 67 71 /** … … 78 82 * @param pLine Where to store the line number details. 79 83 */ 80 DECLCALLBACKMEMBER(int, pfnQueryLine)(PRTDBGMOD pMod, int32_t iSegment, RTUINTPTR uOffset, PRTDBGLINE pLine);84 int (*pfnQueryLine)(PKDBGMOD pMod, int32_t iSegment, KDBGADDR uOffset, PKDBGLINE pLine); 81 85 82 } RTDBGMODOPS;86 } KDBGMODOPS; 83 87 /** Pointer to a module method table. */ 84 typedef RTDBGMODOPS *PRTDBGMODOPS;88 typedef KDBGMODOPS *PKDBGMODOPS; 85 89 /** Pointer to a const module method table. */ 86 typedef const RTDBGMODOPS *PCRTDBGMODOPS;90 typedef const KDBGMODOPS *PCKDBGMODOPS; 87 91 88 92 … … 90 94 * Internal representation of a debug module. 91 95 */ 92 typedef struct RTDBGMOD96 typedef struct KDBGMOD 93 97 { 94 /** Magic value ( RTDBGMOD_MAGIC). */98 /** Magic value (KDBGMOD_MAGIC). */ 95 99 uint32_t u32Magic; 96 100 /** The handle to the module. (If closed, this is NIL_RTFILE.) */ 97 RTFILEFile;101 PKDBGHLPFILE pFile; 98 102 /** Pointer to the method table. */ 99 PC RTDBGMODOPSpOps;100 } RTDBGMOD;103 PCKDBGMODOPS pOps; 104 } KDBGMOD; 101 105 102 106 103 /** The magic value for the debug module structure. (Some english writer) */104 #define RTDBGMOD_MAGIC 0x00000000107 /** The magic value for the debug module structure. (Some dead english writer) */ 108 #define KDBGMOD_MAGIC 0x00000000 105 109 /** The magic value of a dead module structure. */ 106 #define RTDBGMOD_MAGIC_DEAD 0x00000000110 #define KDBGMOD_MAGIC_DEAD 0x00000001 107 111 108 112 109 int rtDbgModPEOpen(RTFILE File, RTFOFF offHdr, const char *pszModulePath, PRTDBGMOD *ppDbgMod);113 int kdbgModPEOpen(PKDBGHLPFILE pFile, KDBGADDR offHdr, const char *pszModulePath, PKDBGMOD *ppDbgMod); 110 114 111 112 __END_DECLS 115 #ifdef __cplusplus 116 } 113 117 #endif 114 118 119 #endif 120 -
Property svn:eol-style
set to
Note:
See TracChangeset
for help on using the changeset viewer.