The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: chiang909 on September 17, 2010, 09:52:42 AM

Title: Problem with CodeView
Post by: chiang909 on September 17, 2010, 09:52:42 AM
hello everybody,

I am new in Assembly programming as well as Codeview debugger. I have followed the instructions installing the latest version MASM32 and sucessfully assembled and linked the hello.asm and hello.obj.

While trying to the debug the file hello.exe with command : cv hello.exe. It comes up with the error message: no transport layer. I could not find the past posting with the similar cast. Can anyone show me solution or the reference? Thank you.
Title: Re: Problem with CodeView
Post by: hutch-- on September 17, 2010, 10:33:08 AM
chiang,

Unless I am mistaken, Codeview is a very old DOS program that will not work with modern 32 bit programs. It used to be a component of the very old DOS version of MASM. For current software I would try out Ollydebug as it is designed to work in a modern OS on 32 bit code.

There are also current debuggers by Microsoft but I don't keep up on what they have available.
Title: Re: Problem with CodeView
Post by: chiang909 on September 17, 2010, 10:43:20 AM
Quote from: hutch-- on September 17, 2010, 10:33:08 AM
chiang,

Unless I am mistaken, Codeview is a very old DOS program that will not work with modern 32 bit programs. It used to be a component of the very old DOS version of MASM. For current software I would try out Ollydebug as it is designed to work in a modern OS on 32 bit code.

There are also current debuggers by Microsoft but I don't keep up on what they have available.

Hello Hutch,

Thanks for the reply. Do u have the link to the instruction of installing Ollydebug and the manual of using this debugger? thanks.

p/sIt would be great if anyone here know the way to use codeview in the modern OS (window vista).
Title: Re: Problem with CodeView
Post by: hutch-- on September 17, 2010, 10:49:46 AM
chiang,

Simply download Ollydebug and install it as it should have enough documentatiuon with it to help you. I don't use debuggers much at all so I don't keep them installed.

You can effectively forget CodeView as it will not work on the very late opewrating system versions.
Title: Re: Problem with CodeView
Post by: shankle on September 17, 2010, 12:26:39 PM
Last time I looked Ollydebug didn't have any symbolic references like Softice did.
Therefor, it's IMHO useless to me.
Title: Re: Problem with CodeView
Post by: BogdanOntanu on September 17, 2010, 02:18:31 PM
Quote from: shankle on September 17, 2010, 12:26:39 PM
Last time I looked Ollydebug didn't have any symbolic references like Softice did.
Therefor, it's IMHO useless to me.

Completely Wrong...

Build a MASM32 sample with debug info in PDB format and you will see symbolic debug info inside Ollydbg.

Of course that Olly is an user mode debugger as opposed to SoftICE being an kernel mode debugger and because of this Olly will not retrieve kernel symbols from Microsoft's servers... but you can not (normally) debug kernel with Olly anyway so this is no big loss.
Title: Re: Problem with CodeView
Post by: jj2007 on September 17, 2010, 03:14:56 PM
Quote from: BogdanOntanu on September 17, 2010, 02:18:31 PM
Quote from: shankle on September 17, 2010, 12:26:39 PM
Last time I looked Ollydebug didn't have any symbolic references like Softice did.
Therefor, it's IMHO useless to me.

Completely Wrong...


Olly 1 sees symbols, Olly 2 doesn't, unfortunately.
Title: Re: Problem with CodeView
Post by: GregL on September 17, 2010, 03:49:22 PM
A great, free debugger/disassembler is MS Visual C++ 2010 Express Edition. It also debugs 64-bit programs.
Title: Re: Problem with CodeView
Post by: BogdanOntanu on September 17, 2010, 03:56:38 PM
Olly 2 is not yet finished and not to be used for anything else but testing Olly itself ;)
Title: Re: Problem with CodeView
Post by: jj2007 on September 17, 2010, 04:42:17 PM
Quote from: BogdanOntanu on September 17, 2010, 03:56:38 PM
Olly 2 is not yet finished and not to be used for anything else but testing Olly itself ;)

Olly 2 is more stable than Olly 1, understands SSE2, and plays less tricks on me. I use Olly 1 only when I really need symbols.
Title: Re: Problem with CodeView
Post by: ToutEnMasm on September 17, 2010, 04:55:44 PM

Quote
A great, free debugger/disassembler is MS Visual C++ 2010 Express Edition. It also debugs 64-bit programs.

Did you have a quick way to make it debug an asm project ?
Title: Re: Problem with CodeView
Post by: GregL on September 17, 2010, 05:36:49 PM
Quote from: ToutEnMasmDid you have a quick way to make it debug an asm project ?

Yes, assemble the file with /Zi, link with /DEBUG. Open the .exe with Open -> Project/Solution, click on the Step Into icon or select Step Into from the Debug menu. You're debugging.