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

Issue 1097413004: Use a breakpoint instruction for a stop message on arm instead of (Closed)

Created:
5 years, 8 months ago by regis
Modified:
5 years, 8 months ago
Reviewers:
zra
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Use a breakpoint instruction for a stop message on arm instead of a svc instruction (or hlt instruction on arm64). The instructions svc and hlt are used in conjunction with a simulator only. At least, gdb now stops on armv5te when hitting a stop message (no prompt). Add support for printing stop message in disassembly on mips and arm64. Clean up various bkpt codes on arm (now similar to arm64 and mips). R=zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=45363

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -60 lines) Patch
M runtime/vm/assembler_arm.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/assembler_arm.cc View 1 2 2 chunks +1 line, -9 lines 0 comments Download
M runtime/vm/assembler_arm64.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M runtime/vm/assembler_arm64.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/constants_arm.h View 1 2 3 chunks +7 lines, -9 lines 0 comments Download
M runtime/vm/constants_arm64.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/disassembler_arm.cc View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/disassembler_arm64.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/vm/disassembler_mips.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/vm/simulator_arm.cc View 1 2 3 chunks +14 lines, -14 lines 0 comments Download
M runtime/vm/simulator_arm64.cc View 1 2 3 chunks +13 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
regis
This solves the stop message issue on armv5te, but not perfectly (no prompt in gdb, ...
5 years, 8 months ago (2015-04-21 22:40:08 UTC) #2
zra
lgtm with suggestion https://codereview.chromium.org/1097413004/diff/1/runtime/vm/assembler_arm.cc File runtime/vm/assembler_arm.cc (right): https://codereview.chromium.org/1097413004/diff/1/runtime/vm/assembler_arm.cc#newcode1473 runtime/vm/assembler_arm.cc:1473: void Assembler::svc(uint32_t imm24, Condition cond) { ...
5 years, 8 months ago (2015-04-22 19:39:25 UTC) #3
regis
Thanks! https://codereview.chromium.org/1097413004/diff/1/runtime/vm/assembler_arm.cc File runtime/vm/assembler_arm.cc (right): https://codereview.chromium.org/1097413004/diff/1/runtime/vm/assembler_arm.cc#newcode1473 runtime/vm/assembler_arm.cc:1473: void Assembler::svc(uint32_t imm24, Condition cond) { On 2015/04/22 ...
5 years, 8 months ago (2015-04-22 20:28:35 UTC) #4
regis
5 years, 8 months ago (2015-04-22 20:46:05 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as r45363 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698