From e7ddc197153de3bcee60451d867d95a13d5f146f Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 17 Jun 2008 00:34:37 +0000 Subject: * m32c.opc (BRK, GDBBRK): Remove debug logic. * main.c (main): Add option to set raw console. * mem.h (m32c_use_raw_console): Declare. * mem.c (m32c_sim_restore_console): Only restore console if it's been previously set. (m32c_use_raw_console): Define. (mem_get_byte): Set raw console if m32c_use_raw_console is set. --- sim/m32c/m32c.opc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/m32c/m32c.opc') diff --git a/sim/m32c/m32c.opc b/sim/m32c/m32c.opc index 9f5bd4a..3fe6cf0 100644 --- a/sim/m32c/m32c.opc +++ b/sim/m32c/m32c.opc @@ -680,7 +680,7 @@ next_opcode: /* We report the break to our caller with the PC still pointing at the breakpoint instruction. */ put_reg (pc, m32c_opcode_pc); - if (verbose || 1) + if (verbose) printf("[break]\n"); if (in_gdb || (regs.r_intbl == 0 && regs.r_intbh == 0)) return M32C_MAKE_HIT_BREAK (); @@ -700,7 +700,7 @@ next_opcode: /* We report the break to our caller with the PC still pointing at the breakpoint instruction. */ put_reg (pc, m32c_opcode_pc); - if (verbose || 1) + if (verbose) printf("[gdb break]\n"); return M32C_MAKE_HIT_BREAK (); -- cgit v1.1