Adding missing symbols to public symbols

Hi all,
I saw Scott’s responses below about how to add types to existing public symbols,

Title: !sysptes 4 and Windows 2003 R2 32bit Std/Ent
URL: http://www.osronline.com/showthread.cfm?link=193747h

Title: Is it possible to add missing symbols to public symbols in a windbg debugging session?
URL: http://stackoverflow.com/questions/4278146/is-it-possible-to-add-missing-symbols-to-public-symbols-in-a-windbg-debugging-ses

So I added some types(e.g. _IMAGE_DOS_HEADER) to existing ntdll.pdb using Scott’s way,however,I got the following error messages:

ntdll.c
ntdll.c(4): error C2011: ‘_IMAGE_DOS_HEADER’ : ‘struct’ type redefinition
ntdll.c(32): error C2011: ‘_IMAGE_FILE_HEADER’ : ‘struct’ type redefinition

I know " _IMAGE_DOS_HEADER: ‘struct’ type redefinition" means ‘_IMAGE_DOS_HEADER’ has been defined,
However, I still got the following error message (it means ‘_IMAGE_DOS_HEADER’ doesn’t exist. ) when I am trying to see the IMAGE_DOS_HEADER structure using the ‘dt’ command

0:000> dt _image_dos_header
Symbol _image_dos_header not found.

If anyone know how to solve the problem, please tell me know. thanks.

Best regards,
Matt

If you don’t successfully compile your c file, nothing will get injected into the pdb. Fix your source file so that it compiles correctly.

  • S

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of zMatthew
Sent: Sunday, December 12, 2010 9:10 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Adding missing symbols to public symbols

Hi all,
I saw Scott’s responses below about how to add types to existing public symbols,

Title: !sysptes 4 and Windows 2003 R2 32bit Std/Ent
URL: http://www.osronline.com/showthread.cfm?link=193747h

Title: Is it possible to add missing symbols to public symbols in a windbg debugging session?
URL: http://stackoverflow.com/questions/4278146/is-it-possible-to-add-missing-symbols-to-public-symbols-in-a-windbg-debugging-ses

So I added some types(e.g. _IMAGE_DOS_HEADER) to existing ntdll.pdb using Scott’s way,however,I got the following error messages:

ntdll.c
ntdll.c(4): error C2011: ‘_IMAGE_DOS_HEADER’ : ‘struct’ type redefinition
ntdll.c(32): error C2011: ‘_IMAGE_FILE_HEADER’ : ‘struct’ type redefinition

I know " _IMAGE_DOS_HEADER: ‘struct’ type redefinition" means '_IMAGE_DOS_HEADER ’ has been defined,
However, I still got the following error message (it means ‘_IMAGE_DOS_HEADER’ doesn’t exist. ) when I am trying to see the IMAGE_DOS_HEADER structure using the ‘dt’ command

0:000> dt _image_dos_header
Symbol _image_dos_header not found.

If anyone know how to solve the problem, please tell me know. thanks.

Best regards,
Matt

NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer