}
if (addr >= debug_progbuf_start && ((addr + len) <= (debug_progbuf_start + sizeof(program_buffer)))) {
+ fprintf(stderr, "Successful write to program buffer %d bytes at %x\n", (int) len, (int) addr);
memcpy(program_buffer + addr - debug_progbuf_start, bytes, len);
+
return true;
}
perform_abstract_command();
}
} else if (address >= DMI_PROGBUF0 && address < DMI_PROGBUF0 + progsize) {
- unsigned i = address = DMI_PROGBUF0;
+ unsigned i = address - DMI_PROGBUF0;
result = read32(program_buffer, i);
if ((abstractauto.autoexecprogbuf >> i) & 1) {
perform_abstract_command();