[OSR-DETECTED-SPAM] RE: Adding missing symbols to public symbols

_IMAGE_DOS_HEADER should already be part of ntoskrnl symbols.

You probably just need to qualify the symbol to dt: dt nt!_IMAGE_DOS_HEADER

Also, depending on your symbol options, symbol names might be case
sensitive.

Good luck,

mm

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Skywing
Sent: Monday, December 13, 2010 12:26 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Adding missing symbols to public symbols

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-sym
bols-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


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

I think he’s in user mode looking for the symbols to be in ntdll.

0:000> dt _image_dos_header

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Martin O’Brien” wrote in message
news:xxxxx@ntdev…

_IMAGE_DOS_HEADER should already be part of ntoskrnl symbols.

You probably just need to qualify the symbol to dt: dt nt!_IMAGE_DOS_HEADER

Also, depending on your symbol options, symbol names might be case
sensitive.

Good luck,

mm

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Skywing
Sent: Monday, December 13, 2010 12:26 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Adding missing symbols to public symbols

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


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

Whoops.

mm

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Scott Noone
Sent: Monday, December 13, 2010 4:49 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Adding missing symbols to public symbols

I think he’s in user mode looking for the symbols to be in ntdll.

0:000> dt _image_dos_header

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Martin O’Brien” wrote in message
news:xxxxx@ntdev…

_IMAGE_DOS_HEADER should already be part of ntoskrnl symbols.

You probably just need to qualify the symbol to dt: dt nt!_IMAGE_DOS_HEADER

Also, depending on your symbol options, symbol names might be case
sensitive.

Good luck,

mm

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Skywing
Sent: Monday, December 13, 2010 12:26 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Adding missing symbols to public symbols

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


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


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