Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Unable to load my Driver symbols

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Hello everybody,

I'm trying to debug a Win2K Bus Driver using WinDbg and am unable
to load the symbols for my driver. Here is the message I get in
WinDbg:

Module Load: BUSENUM.SYS (no symbols loaded)
E:\WINNT\symbols\Free\BUSENUM.dbg for BUSENUM.SYS (has mismatched checksums
sym 0x00011088 img 0x00011CE8 )

Here is what I do to get the symbols file:

==
E:\> dumpbin /HEADERS busenum.sys
[shows "image base address" as 0x10000 in OPTIONAL HEADER VALUES]

E:\> rebase -B 0x10000 -X .\SYMBOLS busenum.sys

REBASE: Total Size of mapping 0x0000000000010000
REBASE: Range 0x0000000000010000 -0x0000000000020000
==

This gives me a busenum.dbg file which I copy to my Symbols directory.

Can anyone tell me what I am doing wrong ?

Thank you so much for your help!
Puja

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    hi puja ,

    Code and .Sys are not in sink (Have you modified the code after you comiled it,Even a ENTER can make a difference).

    ajitabh

    -----Original Message-----
    From: [email protected] [SMTP:[email protected]]
    Sent: Saturday, April 29, 2000 1:25 AM
    To: NT Developers Interest List
    Subject: [ntdev] Unable to load my Driver symbols

    Hello everybody,

    I'm trying to debug a Win2K Bus Driver using WinDbg and am unable
    to load the symbols for my driver. Here is the message I get in
    WinDbg:

    Module Load: BUSENUM.SYS (no symbols loaded)
    E:\WINNT\symbols\Free\BUSENUM.dbg for BUSENUM.SYS (has mismatched checksums
    sym 0x00011088 img 0x00011CE8 )

    Here is what I do to get the symbols file:

    ==
    E:\> dumpbin /HEADERS busenum.sys
    [shows "image base address" as 0x10000 in OPTIONAL HEADER VALUES]

    E:\> rebase -B 0x10000 -X .\SYMBOLS busenum.sys

    REBASE: Total Size of mapping 0x0000000000010000
    REBASE: Range 0x0000000000010000 -0x0000000000020000
    ==

    This gives me a busenum.dbg file which I copy to my Symbols directory.

    Can anyone tell me what I am doing wrong ?

    Thank you so much for your help!
    Puja

    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Thanks, it is working (by mistake I was copying the wrong SYS file).

    Thanks
    Puja


    On 05/02/00, "Ajitabh Prakash " wrote:
    > hi puja ,
    >
    > Code and .Sys are not in sink (Have you modified the code after you comiled it,Even a ENTER can make a difference).
    >
    > ajitabh
    >
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    > Here is what I do to get the symbols file:
    >
    > ==
    > E:\> dumpbin /HEADERS busenum.sys
    > [shows "image base address" as 0x10000 in OPTIONAL HEADER VALUES]
    >
    > E:\> rebase -B 0x10000 -X .\SYMBOLS busenum.sys

    During the checked built, the PDB symbols are automatically generated by
    the compiler.
    Also set NTDEBUG=retail (I mean the environment variable) before running a
    free build - this will eliminate any need in "rebase".

    Max
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 13-17 May 2024 Live, Online
Developing Minifilters 1-5 Apr 2024 Live, Online
Internals & Software Drivers 11-15 Mar 2024 Live, Online
Writing WDF Drivers 26 Feb - 1 Mar 2024 Live, Online