memory breakpoint (4)

This commit is contained in:
folkert van heusden 2024-04-16 14:26:25 +02:00
parent d3f749bce4
commit ffe36af9b4
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
3 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ std::string breakpoint_memory::emit() const
for(auto & v: values) { for(auto & v: values) {
if (out.empty()) if (out.empty())
out = format("MEM%c%c[%08a]=", word_mode == wm_byte ? 'B' : 'W', is_virtual ? 'V' : 'P', addr); out = format("MEM%c%c[%08o]=", word_mode == wm_byte ? 'B' : 'W', is_virtual ? 'V' : 'P', addr);
else else
out += ","; out += ",";

View file

@ -1026,7 +1026,7 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto
cnsl->put_string_lf("sbp/cbp/lbp - set/clear/list breakpoint(s)"); cnsl->put_string_lf("sbp/cbp/lbp - set/clear/list breakpoint(s)");
cnsl->put_string_lf(" e.g.: (pc=0123 and memwv[04000]=0200,0300 and (r4=07,05 or r5=0456))"); cnsl->put_string_lf(" e.g.: (pc=0123 and memwv[04000]=0200,0300 and (r4=07,05 or r5=0456))");
cnsl->put_string_lf(" values seperated by ',', char after mem is w/b (word/byte), then"); cnsl->put_string_lf(" values seperated by ',', char after mem is w/b (word/byte), then");
cnsl->put_string_lf(" follows v/p (virtual/physical)"); cnsl->put_string_lf(" follows v/p (virtual/physical), all octal values");
cnsl->put_string_lf("trace/t - toggle tracing"); cnsl->put_string_lf("trace/t - toggle tracing");
cnsl->put_string_lf("turbo - toggle turbo mode (cannot be interrupted)"); cnsl->put_string_lf("turbo - toggle turbo mode (cannot be interrupted)");
cnsl->put_string_lf("strace - start tracing from address - invoke without address to disable"); cnsl->put_string_lf("strace - start tracing from address - invoke without address to disable");

View file

@ -317,7 +317,7 @@ void help()
#include "breakpoint_parser.h" #include "breakpoint_parser.h"
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#if 1 #if 0
{ {
bus *b = new bus(); bus *b = new bus();
cpu *c = new cpu(b, &event); cpu *c = new cpu(b, &event);