Bochs Debugger

Emulation of old PCs, PC hardware, or PC peripherals.

Bochs Debugger

Postby cookertron » 2019-8-23 @ 15:55

Hi folks,

Has anyone had any experience with Bochs and the built-in debugger?

I would like to debug a program but don't know how to get the debugger to stop at the point the program is about to be executed.

Thanks for your help

Anthony
cookertron
Newbie
 
Posts: 7
Joined: 2017-8-07 @ 22:01

Re: Bochs Debugger

Postby superfury » 2019-8-23 @ 16:51

This seems to give some information:
https://thestarman.pcministry.com/asm/b ... hsdbg.html

Searching a bit more, I also found this:
https://www.cs.umd.edu/~hollings/cs412/ ... ugger.html

Perhaps enough to get starting? It seems vbreak/lbreak is what you're searching for?

Although the main issue is figuring out what segment your program is running on, since it might be dynamically allocated(although it might be unchanging when called in a defined order, e.g. directly after booting to the MS-DOS prompt and executing it. Then, each time after booting and executing it it will be the same(assuming nothing else changes calling the program).
superfury
l33t
 
Posts: 3206
Joined: 2014-3-08 @ 11:25
Location: Netherlands

Re: Bochs Debugger

Postby cookertron » 2019-8-23 @ 17:40

I think what I may do (based on what you've said) is construct a routine that outputs the segment address to the terminal and assume that's where it'll be every time I run the emulator. Does anyone have any thoughts on that?
cookertron
Newbie
 
Posts: 7
Joined: 2017-8-07 @ 22:01


Return to PC Emulation

Who is online

Users browsing this forum: No registered users and 2 guests