flat assembler
Message board for the users of flat assembler.
Index
> Windows > I want get from address name function. About SymFromAddr |
| Author |
|
|
revolution 10 Aug 2026, 06:54
Probably the structure is not correct.
Code: struct SYMBOL_INFO SizeOfStruct dd 0;ULONG TypeIndex dd 0;ULONG Reserved dq 0, 0 Index dd 0;ULONG Size dd 0;ULONG ModBas dq 0;ULONG64 Flags dd 0;ULONG padding dd ? ; <---------- make next qword aligned Value dq 0 ;ULONG64 Address dq 0 ;ULONG64 Register dd 0;ULONG Scope dd 0;ULONG Tag dd 0;ULONG NameLen dd 0;ULONG MaxNameLen dd 0;ULONG Name db 64 dup(0) ;char ends |
|||
|
|
Roman 10 Aug 2026, 07:57
And how get hProcess ?
using GetCurrentProcessId or GetCurrentProcess ? Or some else ? |
|||
|
|
Roman 10 Aug 2026, 08:54
Code: ;size 88 bytes struct SYMBOL_INFO SizeOfStruct dd 0;ULONG TypeIndex dd 0;ULONG Reserved dq 0, 0 Index dd 0;ULONG Size dd 0;ULONG ModBas dq 0;ULONG64 Flags dd 0;ULONG padding dd ? ; <---------- make next qword aligned Value dq 0 ;ULONG64 Address dq 0 ;ULONG64 Register dd 0;ULONG Scope dd 0;ULONG Tag dd 0;ULONG NameLen dd 0;ULONG MaxNameLen dd 0;ULONG pad2 dd 0 ends |
|||
|
|
Roman 10 Aug 2026, 12:55
SymFromAddr get from pdb file.
Very bad. |
|||
|
|
bitRAKE 10 Aug 2026, 15:53
How have you configured the symbol server and loaded modules? hProcess can be a "key" (FALSE) or a live, readable process handle (TRUE) -- depending on SymInitialize(h, path, FALSE/TRUE).
Edit: I added an example of correct (dbghelp.dll + symsrv.dll) output. Rather than scan live loaded modules, this program loads modules independent of the executable. So, it makes very clear bad configurations and every search location. Debugging Tools for Windows has a correctly paired dbghelp.dll and symsrv.dll -- they tend to update as frequently as Windows builds, imho. |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.