Results 1 to 8 of 8

Thread: Linux equivalent to DOS' Debug?

  1. #1
    Join Date
    Mar 2006
    Location
    Bucharest
    Beans
    604

    Question Linux equivalent to DOS' Debug?

    Hi! I dropped by to ask this: what is the Linux equivalent to the 'Debug' command in DOS, so that I can use commands for some kind of registries, r, mov, xchg etc? (I need it for my classroom as I don't want to install Windows in a virtual machine).

    I mention I tried gdb but it doesn't seem to work like that. Reading the man page didn't help me much either.

  2. #2
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,458
    Distro
    Xubuntu Development Release

    Re: Linux equivalent to DOS' Debug?

    Moved to Programming Talk forum. You're more likely to get help there, and won't get buried so quickly.

  3. #3
    Join Date
    Mar 2006
    Location
    Bucharest
    Beans
    604

    Re: Linux equivalent to DOS' Debug?

    OK, hopefully.

  4. #4
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,458
    Distro
    Xubuntu Development Release

    Re: Linux equivalent to DOS' Debug?

    As a thought:

    I don't know how to use gdb - the last debugger I used was Borland turbo C. But Borland turbo C is now a free download, I gather, and would probably work in dosbox.

    And a quick google found these two references:
    http://www.gnu.org/software/ddd/
    http://libre.adacore.com/libre/tools/gps/

  5. #5
    Join Date
    Apr 2007
    Location
    (X,Y,Z) = (0,0,0)
    Beans
    3,715

    Re: Linux equivalent to DOS' Debug?

    It is gdb. Look at this very good introduction to it (PDF): http://www.cs.umd.edu/~srhuang/teach...al-handout.pdf

  6. #6
    Join Date
    May 2007
    Beans
    245
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Linux equivalent to DOS' Debug?

    It is obvious that a Linux debugger would be of no use to you because you'll likely need access to the DOS interrupt routines.

    Your best route is to install a Virtual Machine:
    http://www.virtualbox.org/

    Then load a DOS environment into it:
    http://www.freedos.org/

  7. #7
    Join Date
    May 2007
    Beans
    245
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Linux equivalent to DOS' Debug?

    P.S. - This will not help you in your class, but if you *do* get the notion to play with a debugger in a Linux environment, check out EDB (Evan's Debugger):

    http://freshmeat.net/projects/edebugger

    Tutes, Refs, Utils, and other resources available at Linux Assembly:

    http://asm.sourceforge.net/

    Hope that helps!

    Nathan.
    http://clax.inspiretomorrow.net/index.html

  8. #8
    Join Date
    Mar 2006
    Location
    Bucharest
    Beans
    604

    Re: Linux equivalent to DOS' Debug?

    Ok guys, thank you all for your replies. I think I will try the FreeDOS option, it was also suggested to me somewhere else too.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •