Changeset 91633 in vbox
- Timestamp:
- Oct 8, 2021 8:42:00 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147358
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/dbg.h
r89971 r91633 1962 1962 * 1963 1963 * @param hKrnlInfo The kernel info handle. 1964 * @param pszModule Reserved for future extensions. Pass NULL. 1964 * @param pszModule The name of the module to search, pass NULL to 1965 * search the default kernel module(s). 1965 1966 * @param pszSymbol The C name of the symbol. 1967 * On Windows NT there are the following special symbols: 1968 * - __ImageBase: The base address of the module. 1969 * - __ImageSize: The size of the module. 1970 * - __ImageNtHdrs: Address of the NT headers. 1966 1971 * @param ppvSymbol Where to return the symbol value, passing NULL is 1967 1972 * OK. This may be modified even on failure, in … … 1980 1985 * or something. 1981 1986 * @param hKrnlInfo The kernel info handle. 1982 * @param pszModule Reserved for future extensions. Pass NULL. 1987 * @param pszModule The name of the module to search, pass NULL to 1988 * search the default kernel module(s). 1983 1989 * @param pszSymbol The C name of the symbol. 1990 * On Windows NT there are the following special symbols: 1991 * - __ImageBase: The base address of the module. 1992 * - __ImageSize: The size of the module. 1993 * - __ImageNtHdrs: Address of the NT headers. 1984 1994 * @sa RTR0DbgKrnlInfoQuerySymbol, RTLdrGetSymbol 1985 1995 */ -
trunk/src/VBox/Runtime/r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp
r85906 r91633 170 170 if (pModInfo->fOkay) 171 171 { 172 /* 173 * Pseudo symbols: 174 */ 175 if ( pszSymbol[0] == '_' 176 && pszSymbol[1] == '_' 177 && pszSymbol[2] == 'I') 178 { 179 if (strcmp(pszSymbol, "__ImageBase") == 0) 180 { 181 *ppvSymbol = (void *)pModInfo->pbImageBase; 182 return VINF_SUCCESS; 183 } 184 if (strcmp(pszSymbol, "__ImageSize") == 0) 185 { 186 *ppvSymbol = (void *)(uintptr_t)pModInfo->cbImage; 187 return VINF_SUCCESS; 188 } 189 if (strcmp(pszSymbol, "__ImageNtHdrs") == 0) 190 { 191 *ppvSymbol = pModInfo->pNtHdrs; 192 return VINF_SUCCESS; 193 } 194 } 195 172 196 /* 173 197 * Binary search.
Note:
See TracChangeset
for help on using the changeset viewer.