Posts: 34
Threads: 12
Joined: Dec 2013
Reputation:
0
what exactly is a memory breakpoint and how does it work,
also let's say i wanted the emulator to pause whenever a value is written to memory that isn't an instruction, how would i do that?
Posts: 3,228
Threads: 25
Joined: Nov 2012
Reputation:
98
Well, currently they pause the emulator when any value is written to that address. It's possible to add condition support but a little bit of a pain so no one has done it yet.
You can do an address range. It doesn't support writes from HLE, though (video, memcpy, etc.)
What do you mean by, "isn't an instruction?" It breaks on MIPS instructions like "sw", "sv.q", etc. It doesn't know whether it's writing an instruction, texture data, stack, etc.
-[Unknown]
Posts: 34
Threads: 12
Joined: Dec 2013
Reputation:
0
06-30-2015, 09:08 PM
(This post was last modified: 06-30-2015, 09:20 PM by grief3r.)
well i just noticed this old thread and wondering if this yet support conditional breakpoints
"What do you mean by, "isn't an instruction?" It breaks on MIPS instructions like "sw", "sv.q", etc. It doesn't know whether it's writing an instruction, texture data, stack, etc."
i didnt quite understand how breakpoints worked at the time but i was referring to whenever an instruction to be executed gets replaced with another for instance when you switch to a different screen such as the main menu the address storing that instruction becomes a completely different one, which i have actually tried doing and it does break at the instruction writing over that piece of memory.
Posts: 3,228
Threads: 25
Joined: Nov 2012
Reputation:
98
Oh, sure. Ultimately, that is just a sw usually.
Although, another case for that might be "relocations". This is where the OS (which is HLE) automatically modifies pointers for you between loaded modules. I'm not sure offhand if those trigger breakpoints right now...
-[Unknown]