First post, by llm
years ago i've added a feature for break point on memory read(write) ranges, slow and only available in heavy-debug mode
something likes these commands
BSMR seg:ofs range // detect reads
BSMW seg:ofs range // detect writes
BSRMW seg:ofs range // detect reads and writes
but i've accidentally deleted the very old dosbox svn repo containing the stuff years ago while cleaning up my backups/moveing to a new system 😒
now i want to reimplement this feature again - and im totaly lost - i need to understand which part of the code is reading, writing parts of data
so can give me anyone of the devs a tip how to cleanly introduce such feature and what parts of the code could be relevant
Writing:
the range write BP is just an extension of the current BPM with a range of values
Reading:
the reading bp needs to hook reading (i think i've done it that way before??)
are these the functions i need to hook? is there a better place to check for hitting the bp range?
dosbox\include\mem.h
host_readb
host_readw
host_readd
or dosbox\include\paging.h
mem_readb_inline
mem_readw_inline
mem_readd_inline
or all of them?
is there a chance to get something like this into mainline, so it won't get lost another time?