07-16-2011, 03:32 PM
(07-13-2011, 01:36 AM)Xeeynamo Wrote: Hi.
Recently I started to debugging a game to patch and reverse some stuff and the best choice for me was JPCSP. I'm not really happy of the internal debugger that come with the emulator, so I downloaded the source code from the SVN and I edited some functions to get some extra debugging stuff on the log console. I'm here because I can't find the function that offer the memory reading, because I need to log every reading from the RAM with the current offset and the current position of the CPU executing (the PC). I found read32 and memread32, but these doesn't offer me all the reads from the psp emulated memory. I hope that some programmer of the project can reply me.
Ah, sorry. This is what you're looking for: http://www.emunewz.net/forum/showthread.php?tid=4391
We already offer a way to log each read/write to RAM by using that special "Memory.mbrk" breakpoint file. It can be used to forcefully pause the emulator at each access or to just print a small string with the offset and data being accessed.
We really need to document this feature properly, since it's quite useful for developers.