LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2011, 09:22 PM   #1
ultagod
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Rep: Reputation: 0
replacement for debug.exe?


I want a replacement for debug.exe. Reading online it looks like gdb might work. I want to be able to run commands such as "-a <address>", "-n file.bin" and "-w 0 0 0 1". Is this possible? If not I can just continue using virtualization and DOS.
 
Old 10-22-2011, 10:36 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
gdb

jlinkels
 
Old 10-22-2011, 11:32 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
For debugging Linux programs, you want gdb, possibly with one of it's GUI front-ends, such as ddd. gdb will not serve you for debugging under DOS, just like debug.exe will not be useful for debugging Linux programs.

--- rod.
 
Old 10-23-2011, 01:25 PM   #4
ultagod
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Original Poster
Rep: Reputation: 0
I guess a partial solution would be to use 'dd' and offset the location of writing. I think I will stick with DOS for writing assembled coded to a disk since debug.exe is best suited to that job.
 
Old 10-23-2011, 03:14 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,921

Rep: Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618
debug can really do more than most people know or can remember. There is no linux tool that is as powerful as debug.
 
1 members found this post helpful.
Old 10-24-2011, 11:20 AM   #6
dogpatch
Member
 
Registered: Nov 2005
Location: Central America
Distribution: Mepis, Android
Posts: 490
Blog Entries: 4

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by jefro View Post
debug can really do more than most people know or can remember. There is no linux tool that is as powerful as debug.
I tend to agree, at least for simple assembly programming. Maybe this (a Linux version of debug) is an opportunity for a good Linux programmer.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cygwin g++-3.exe, gcc-3.exe corrupted to g++3.exe.dam and gcc-3.exe.dam pawanjanbandhu Linux - Newbie 2 12-03-2009 11:27 AM
cygwin g++-3.exe, gcc-3.exe corrupted to g++3.exe.dam and gcc-3.exe.dam pawanjanbandhu Linux - Software 1 11-17-2009 02:26 PM
debug\*.exe not found threaderslash Programming 3 09-17-2009 11:00 PM
samba compatibility with microsoft srvtools.exe (usrmgr.exe and srvmgr.exe) checkmate3001 Linux - Software 1 09-06-2008 05:08 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration