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/


SoftIce and breakpoint

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Dear Sir:
I try to set the breakpoint at source line in softice. However, I
encounter one problem. the softice never stop at break point.
I am sure the code at breakpoint been execute( the debug message have show
up at softice and also debugview.)

I Verify the following step
At softice
1. Type sym , and I can see the symbol table
2. File filename, and set the breakpoint , I do see the color change at
the source line.

At Symbol Loader
I can see the symbol table at Edit->symbol table.

It use to wok fine, I try to un_ install and install again. it also can not
work properly. I use softice version 4.0

Any hint is appreciate

Michael Cheng

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    it could be in a seperate thread
    is it the only break point you've set

    > ----------
    > From: [email protected][SMTP:[email protected]]
    > Reply To: NT Developers Interest List
    > Sent: Wednesday, May 24, 2000 2:19 PM
    > To: NT Developers Interest List
    > Subject: [ntdev] SoftIce and breakpoint
    >
    >
    > Dear Sir:
    > I try to set the breakpoint at source line in softice. However, I
    > encounter one problem. the softice never stop at break point.
    > I am sure the code at breakpoint been execute( the debug message have show
    > up at softice and also debugview.)
    >
    > I Verify the following step
    > At softice
    > 1. Type sym , and I can see the symbol table
    > 2. File filename, and set the breakpoint , I do see the color change at
    > the source line.
    >
    > At Symbol Loader
    > I can see the symbol table at Edit->symbol table.
    >
    > It use to wok fine, I try to un_ install and install again. it also can
    > not
    > work properly. I use softice version 4.0
    >
    > Any hint is appreciate
    >
    > Michael Cheng
    >
    >
    >
    >
    > ---
    > 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
    Try puting int 3 in your code and see it breaks there. Don't forget to set
    the command i3here ON in the softICE window.
    If you rename your binary file, after building, it won't work in softICE.
    -bala

    > ----------
    > From: [email protected][SMTP:[email protected]]
    > Reply To: NT Developers Interest List
    > Sent: Wednesday, May 24, 2000 4:49 AM
    > To: NT Developers Interest List
    > Subject: [ntdev] SoftIce and breakpoint
    >
    >
    > Dear Sir:
    > I try to set the breakpoint at source line in softice. However, I
    > encounter one problem. the softice never stop at break point.
    > I am sure the code at breakpoint been execute( the debug message have show
    > up at softice and also debugview.)
    >
    > I Verify the following step
    > At softice
    > 1. Type sym , and I can see the symbol table
    > 2. File filename, and set the breakpoint , I do see the color change at
    > the source line.
    >
    > At Symbol Loader
    > I can see the symbol table at Edit->symbol table.
    >
    > It use to wok fine, I try to un_ install and install again. it also can
    > not
    > work properly. I use softice version 4.0
    >
    > Any hint is appreciate
    >
    > Michael Cheng
    >
    >
    >
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
    >
  • OSR_Community_User-35OSR_Community_User-35 Member Posts: 154
    It could be that your symbols & source don't match the binary, so the
    breakpoint isn't set where you think it is. Or it could be that you
    are setting the breakpoint before the executable/DLL/driver image is
    loaded, and the image doesn't load where SoftICE expected, so the
    breakpoint doesn't get fixed up to the right address.

    Verify that the .NMS file is from the same build as the binary. If so,
    then try to set the breakpoint after the image is loaded. This is
    sometimes a problem -- if the code you want to debug is run during
    intialization. You might try hard-coding a breakpoint.

    -----------------------------------------------------------------------
    Dave Cox
    Hewlett-Packard Co.
    HPSO/SSMO (Santa Barbara)
    https://ecardfile.com/id/Dave+Cox


    -----Original Message-----
    From: [email protected] [mailto:[email protected]]
    Sent: Wednesday, May 24, 2000 1:49 AM
    To: NT Developers Interest List
    Subject: [ntdev] SoftIce and breakpoint



    Dear Sir:
    I try to set the breakpoint at source line in softice. However, I
    encounter one problem. the softice never stop at break point.
    I am sure the code at breakpoint been execute( the debug message have show
    up at softice and also debugview.)

    I Verify the following step
    At softice
    1. Type sym , and I can see the symbol table
    2. File filename, and set the breakpoint , I do see the color change at
    the source line.

    At Symbol Loader
    I can see the symbol table at Edit->symbol table.

    It use to wok fine, I try to un_ install and install again. it also can not
    work properly. I use softice version 4.0

    Any hint is appreciate

    Michael Cheng




    ---
    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
    Hi :
    Thanks many of you help me on this issue. I also get the answer from
    Neguma as following and they support are quite quick.
    I see my table address is 0001 and the irq3 is not work anymore. After
    all, I found my computer is very unstable (may due to too many beta driver)
    so I uninstall softice , setup the window again and install softice,
    then my problem is solved.


    Michael Cheng

    FYI

    It sounds like your source isn't associated with the correct module. This
    sometimes happens if you have two modules loading that start with the same
    first eight characters. SoftIce cannot distinguish files by their file
    extensions or from long file names. The symbols will be associated with
    whichever module loads last.

    If you type "SYM", if the first four numbers in the address are 0001, the
    symbols were never mapped to a module. If not, they were mapped to the
    wrong module.

    If you do not have another module of the same name as the driver, then you
    can manually relocate the symbol table with the symloc command. You should
    first put an "_asm int 3" in your source code so that SoftIce pops up when
    is loaded. Then use map32 to get the addresses of each section of code,
    and
    symloc to relocate every section of the symbol table. Here is an example:

    :map32 threads
    Owner Obj Name Obj# Address Size Type
    Threads .text 0001 0008:F43D82E0 00002A00 CODE RO
    Threads .data 0002 0023:F43DACE0 000000C8 IDATA RW
    :symloc 1 8 f43D82E0
    :symloc 2 23 f43dace0

    If SoftIce doesn't pop up, try the 'I3HERE ON' command in SoftIce.

    Also make sure that the symbol information stored in *.nms file is
    up-to-date with your executable file. You can also try using _asm int 3;
    breakpoints in your code to set breakpoints.






    Sudhir_Sambrani @lists.osr.com on 2000/05/24
    07:27:39 PM

    Please respond to "NT Developers Interest List"

    Sent by: [email protected]


    To: "NT Developers Interest List"
    cc:

    Subject: [ntdev] RE: SoftIce and breakpoint





    it could be in a seperate thread
    is it the only break point you've set

    ----------
    From: ? [email protected][SMTP:[email protected]]
    Reply To: ????? NT Developers Interest List
    Sent: ? Wednesday, May 24, 2000 2:19 PM
    To: ??? NT Developers Interest List
    Subject: ?????? [ntdev] SoftIce and breakpoint

    Dear Sir:
    I try to set the breakpoint at source line in? softice. However, I
    encounter one problem. the softice never stop at break point.
    I am sure the code at breakpoint been execute( the debug message have
    show
    up at softice and also debugview.)

    I Verify the following step
    At softice
    1. Type sym , and I can see the symbol table
    2.? File filename, and set the breakpoint , I do see the color change at
    the source line.

    At Symbol Loader
    I can see the symbol table at?? Edit->symbol table.

    It use to wok fine, I try to un_ install and install again. it also can
    not
    work properly. I use softice version 4.0

    Any hint is appreciate

    Michael Cheng



    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
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 30 January 2023 Live, Online
Developing Minifilters 20 March 2023 Live, Online
Writing WDF Drivers TBD 2023 Live, Online
Internals & Software Drivers 17 April 2023 Live, Online