News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

simple source code debuggers

Started by flipflop1, March 28, 2013, 01:26:17 PM

Previous topic - Next topic

Magnum

flipflop1,

I use Windbg a lot.

This will make Windbg happy.

Windbg can be a pain, but not other program can debug your O.S.

Andy

\masm32\bin\ml /c /coff /Zi %1.asm
if errorlevel 1 goto errasm

if not exist rsrc.obj goto nores

\masm32\bin\Link /RELEASE /DEBUG /SUBSYSTEM:WINDOWS /OPT:NOREF %1.obj rsrc.obj
if errorlevel 1 goto errlink

:nores
\masm32\bin\Link /RELEASE /DEBUG /SUBSYSTEM:WINDOWS /OPT:NOREF %1.obj
if errorlevel 1 goto errlink
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

flipflop1

thanks for the post but ive already tried those settings I think there must be some other issue causing problems, Now that I have olly1 working im quite happy to stick with it but I have no idea how it fixed itself it may have had something to do with olly2 setting up registry for me but I cant say for sure or it may have been the symbol files I downloaded from Microsoft but from a newbie point of view setting this stuff up could well do with a program written by better programmers to automate this process as it is not easy or at least good solid documentation from the developers on settings for ml and link and instructions on symbols.
im playing around now with olly and have found my first bug in my source so I will turn my attention to that for now but I will keep an I eye open for olly2 update I hope it is soon
cheers all for advice and help

Magnum

You should post some more details other than it doesn't work.

And don't blame your attention span either.  :t

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

GoneFishing

Quoteok got it to produce the pdb file however windbg does not like it

I get this
Code: [Select]

Microsoft (R) Windows Debugger Version 6.2.9200.20512 X86
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: C:\masm32\prime.exe
Symbol search path is: C:\Symbols;srv*
Executable search path is: srv*

Try setting appropriate paths for your executable and its symbols.

flipflop1