Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Issue 12431016: Copies Simulator Debugger from ARM to MIPS. (Closed)

Created:
7 years, 9 months ago by zra
Modified:
7 years, 9 months ago
Reviewers:
regis, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Copies Simulator Debugger from ARM to MIPS. Also includes changes to keep it from aborting unexpectedly. Among other things, I changed the Disassembler::Disassemble to return false when the underlying decoder can't decode an instruction. Then, the MIPS SimulatorDebugger will refuse to step or cont on an instruction that the Disassembler can't decode. Committed: https://code.google.com/p/dart/source/detail?r=19958

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+734 lines, -143 lines) Patch
M runtime/vm/assembler_mips.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/constants_mips.h View 1 5 chunks +30 lines, -9 lines 1 comment Download
M runtime/vm/disassembler.h View 1 1 chunk +17 lines, -15 lines 0 comments Download
M runtime/vm/disassembler_arm.cc View 1 2 3 7 chunks +28 lines, -11 lines 0 comments Download
M runtime/vm/disassembler_ia32.cc View 1 4 chunks +15 lines, -9 lines 0 comments Download
M runtime/vm/disassembler_mips.cc View 1 2 3 12 chunks +58 lines, -37 lines 0 comments Download
M runtime/vm/disassembler_x64.cc View 1 4 chunks +14 lines, -8 lines 0 comments Download
M runtime/vm/simulator_arm.cc View 1 3 chunks +20 lines, -7 lines 2 comments Download
M runtime/vm/simulator_mips.h View 1 4 chunks +18 lines, -1 line 0 comments Download
M runtime/vm/simulator_mips.cc View 1 20 chunks +527 lines, -46 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
zra
7 years, 9 months ago (2013-03-12 18:45:10 UTC) #1
regis
I did not review the debugger code in detail, since it is copied from the ...
7 years, 9 months ago (2013-03-12 20:53:19 UTC) #2
zra
On 2013/03/12 20:53:19, regis wrote: > I did not review the debugger code in detail, ...
7 years, 9 months ago (2013-03-12 21:54:30 UTC) #3
zra
On 2013/03/12 21:54:30, zra wrote: > On 2013/03/12 20:53:19, regis wrote: > > I did ...
7 years, 9 months ago (2013-03-12 22:09:03 UTC) #4
regis
On 2013/03/12 22:09:03, zra wrote: > On 2013/03/12 21:54:30, zra wrote: > > On 2013/03/12 ...
7 years, 9 months ago (2013-03-12 22:23:40 UTC) #5
zra
On 2013/03/12 22:23:40, regis wrote: > On 2013/03/12 22:09:03, zra wrote: > > On 2013/03/12 ...
7 years, 9 months ago (2013-03-12 22:32:09 UTC) #6
zra
Moved "decoded" variable into ARMDecoder and MIPSDecoder, which is set inside their Unknown methods. Then ...
7 years, 9 months ago (2013-03-13 18:09:14 UTC) #7
regis
LGTM https://codereview.chromium.org/12431016/diff/18003/runtime/vm/disassembler_mips.cc File runtime/vm/disassembler_mips.cc (right): https://codereview.chromium.org/12431016/diff/18003/runtime/vm/disassembler_mips.cc#newcode30 runtime/vm/disassembler_mips.cc:30: bool GetDecodeFailure() const { return decode_failure_; } We ...
7 years, 9 months ago (2013-03-13 18:29:59 UTC) #8
zra
https://codereview.chromium.org/12431016/diff/18003/runtime/vm/disassembler_mips.cc File runtime/vm/disassembler_mips.cc (right): https://codereview.chromium.org/12431016/diff/18003/runtime/vm/disassembler_mips.cc#newcode30 runtime/vm/disassembler_mips.cc:30: bool GetDecodeFailure() const { return decode_failure_; } On 2013/03/13 ...
7 years, 9 months ago (2013-03-13 18:43:03 UTC) #9
zra
Committed patchset #4 manually as r19958 (presubmit successful).
7 years, 9 months ago (2013-03-13 18:43:23 UTC) #10
Ivan Posva
DBC -ip https://codereview.chromium.org/12431016/diff/16003/runtime/vm/constants_mips.h File runtime/vm/constants_mips.h (right): https://codereview.chromium.org/12431016/diff/16003/runtime/vm/constants_mips.h#newcode76 runtime/vm/constants_mips.h:76: S7 = R23, Thanks! https://codereview.chromium.org/12431016/diff/16003/runtime/vm/simulator_arm.cc File runtime/vm/simulator_arm.cc ...
7 years, 9 months ago (2013-03-13 21:50:34 UTC) #11
zra
7 years, 9 months ago (2013-03-14 15:48:14 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/12431016/diff/16003/runtime/vm/simulator_arm.cc
File runtime/vm/simulator_arm.cc (right):

https://codereview.chromium.org/12431016/diff/16003/runtime/vm/simulator_arm....
runtime/vm/simulator_arm.cc:356: if (decoded) {
On 2013/03/13 21:50:34, Ivan Posva wrote:
> I am still not quite sure what we are benefitting from this extra information.

If you step onto an unknown instruction, or set a break point on an unknown
instruction, you now won't lose your debug session if you then try to do a stepi
or cont.

https://codereview.chromium.org/12431016/diff/16003/runtime/vm/simulator_mips.cc
File runtime/vm/simulator_mips.cc (right):

https://codereview.chromium.org/12431016/diff/16003/runtime/vm/simulator_mips...
runtime/vm/simulator_mips.cc:802: UNIMPLEMENTED();
On 2013/03/13 21:50:34, Ivan Posva wrote:
> What are you planning to implement here?

There are several Special instructions remaining to be implemented.

Powered by Google App Engine
This is Rietveld 408576698