Chromium Code Reviews| Index: runtime/vm/simulator_mips.h |
| =================================================================== |
| --- runtime/vm/simulator_mips.h (revision 20300) |
| +++ runtime/vm/simulator_mips.h (working copy) |
| @@ -96,6 +96,19 @@ |
| // Read and write memory. |
| void UnalignedAccess(const char* msg, uword addr, Instr* instr); |
| + // Handles a legal instruction that the simulator does not implement. |
| + void UnimplementedInstruction(Instr* instr); |
| + |
| + // If something goes wrong (Unimplemented instruction, illegal access, etc.), |
| + // this flag is used to decide whether to die or to drop into the simulator |
| + // debugger. Its initial value is false. Then, when we enter the simulator |
| + // debugger (for a user set breakpoint, etc.) it is set to true. |
| + bool debugger_attached_; |
| + |
| + // Accesors to set and check whether the simulator debugger is attached. |
|
regis
2013/03/21 17:21:13
Accessors
zra
2013/03/21 17:48:52
Done.
|
| + bool debugger_attached() const { return debugger_attached_; } |
| + void set_debugger_attached(bool b) { debugger_attached_ = b; } |
| + |
| bool OverflowFrom(int32_t alu_out, |
| int32_t left, |
| int32_t right, |