Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

debugxv - how to use I/O watchpoint? (Users)

posted by Japheth Homepage, Germany (South), 08.04.2025, 12:30
(edited by Japheth on 08.04.2025, 12:52)

> I'd need to set a breakpoint ideally on any I/O port access (without
> specifying address of out instruction as I don't know all the locations in
> debugee) - can it be achieved with debugxv /v via v86 IO traps?
> I tried to set BP at specific address with out instruction of type 02 - I/O
> watchpoint by command
> BP xxxx:yyyy 02
> BP confirmed it was set
> then go
> but program didn't stopped at breakpoint and run till the end.

What is xxxx:yyyy? For I/O watchpoints, you have to specify a port. So the syntax to catch access to I/O port 0x80 is:


bp %80 2


Note the % - it's necessary, else debug adds base of CS or DS to the "address". Alternatively, "bp 0:80 2" should also work (not tested).

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22477 Postings in 2087 Threads, 400 registered users, 118 users online (0 registered, 118 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum