Make dbghelp build. Very buggy, very wine-ized, haven't looked much at the code yet, work in progress for my upcoming Debug API support.

svn path=/trunk/; revision=12407
This commit is contained in:
Alex Ionescu 2004-12-30 18:24:19 +00:00
parent 216311551a
commit b3ba03af69
3 changed files with 7 additions and 4 deletions

View file

@ -26,6 +26,8 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
#define YDEBUG
#define DBG
/* TODO
* - support for symbols' types is still partly missing

View file

@ -33,7 +33,6 @@
#include "thread.h" /* FIXME: must be included before winternl.h */
#include "winternl.h"
#include "wine/debug.h"
#include "stackframe.h"
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
@ -76,6 +75,7 @@ BOOL WINAPI StackWalk(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
PGET_MODULE_BASE_ROUTINE GetModuleBaseRoutine,
PTRANSLATE_ADDRESS_ROUTINE f_xlat_adr)
{
#if 0
STACK32FRAME frame32;
STACK16FRAME frame16;
char ch;
@ -385,4 +385,5 @@ BOOL WINAPI StackWalk(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
done_err:
curr_mode = stm_done;
return FALSE;
#endif
}

View file

@ -371,10 +371,10 @@ BOOL WINAPI SymEnumTypes(HANDLE hProcess, ULONG64 BaseOfDll,
struct symt* type;
void* pos = NULL;
TRACE("(%p %s %p %p)\n",
/* TRACE("(%p %s %p %p)\n",
hProcess, wine_dbgstr_longlong(BaseOfDll), EnumSymbolsCallback,
UserContext);
*/
if (!(pcs = process_find_by_handle(hProcess))) return FALSE;
module = module_find_by_addr(pcs, BaseOfDll, DMT_UNKNOWN);
if (!(module = module_get_debug(pcs, module))) return FALSE;
@ -755,7 +755,7 @@ BOOL WINAPI SymGetTypeInfo(HANDLE hProcess, DWORD64 ModBase,
module = module_find_by_addr(pcs, ModBase, DMT_UNKNOWN);
if (!(module = module_get_debug(pcs, module)))
{
FIXME("Someone didn't properly set ModBase (%s)\n", wine_dbgstr_longlong(ModBase));
// FIXME("Someone didn't properly set ModBase (%s)\n", wine_dbgstr_longlong(ModBase));
return FALSE;
}