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

Issue 2957843002: Add gdb helper functions for creating a handle and using ToCString with RawObjects. (Closed)

Created:
3 years, 5 months ago by rmacnak
Modified:
3 years, 5 months ago
CC:
reviews_dartlang.org, zra, vm-dev_dartlang.org, alexmarkov, bkonyi, aam
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add gdb helper functions for creating a handle and using ToCString with RawObjects. Improves gdb debugging when Object::Handle() is optimized away. Replace some intermediate static_libraries with source_sets to fix export issue. R=regis@google.com, vegorov@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/f1b7e8ed8cb035ec8c4a8eca3b6536d06e97f84f

Patch Set 1 #

Total comments: 5

Patch Set 2 : . #

Patch Set 3 : source_set #

Total comments: 2

Patch Set 4 : missing-product-exclude #

Total comments: 2

Patch Set 5 : sort #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -58 lines) Patch
M runtime/BUILD.gn View 1 2 2 chunks +5 lines, -21 lines 0 comments Download
M runtime/lib/object.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/lib/stacktrace.cc View 1 chunk +0 lines, -24 lines 0 comments Download
M runtime/vm/BUILD.gn View 1 2 9 chunks +9 lines, -9 lines 0 comments Download
A runtime/vm/gdb_helpers.cc View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
M runtime/vm/thread_interrupter_linux.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
rmacnak
3 years, 5 months ago (2017-06-26 17:23:44 UTC) #2
regis
lgtm
3 years, 5 months ago (2017-06-26 17:27:37 UTC) #3
siva
DBC https://codereview.chromium.org/2957843002/diff/1/runtime/vm/gdb_helpers.cc File runtime/vm/gdb_helpers.cc (right): https://codereview.chromium.org/2957843002/diff/1/runtime/vm/gdb_helpers.cc#newcode36 runtime/vm/gdb_helpers.cc:36: DART_NOINLINE Seems to have lost the comment // ...
3 years, 5 months ago (2017-06-26 20:19:05 UTC) #4
Vyacheslav Egorov (Google)
LGTM Maybe mention this helpers on http://go/dartvm-cookbook/debugging-with-gdb ?
3 years, 5 months ago (2017-06-26 20:22:04 UTC) #5
zra
https://codereview.chromium.org/2957843002/diff/1/runtime/vm/gdb_helpers.cc File runtime/vm/gdb_helpers.cc (right): https://codereview.chromium.org/2957843002/diff/1/runtime/vm/gdb_helpers.cc#newcode75 runtime/vm/gdb_helpers.cc:75: On 2017/06/26 20:19:05, siva wrote: > Should this entire ...
3 years, 5 months ago (2017-06-26 20:31:24 UTC) #6
rmacnak
Strangely these functions don't end up in the final binary, getting lost somehow between libdart_vm_jit.a ...
3 years, 5 months ago (2017-06-28 00:03:00 UTC) #7
rmacnak
Changed some static_libraries to source_sets in the GN to get the exported-ness of these helpers ...
3 years, 5 months ago (2017-06-29 20:44:22 UTC) #9
zra
https://codereview.chromium.org/2957843002/diff/40001/runtime/vm/gdb_helpers.cc File runtime/vm/gdb_helpers.cc (right): https://codereview.chromium.org/2957843002/diff/40001/runtime/vm/gdb_helpers.cc#newcode8 runtime/vm/gdb_helpers.cc:8: #include "lib/stacktrace.h" Alphabetize includes https://codereview.chromium.org/2957843002/diff/60001/runtime/vm/gdb_helpers.cc File runtime/vm/gdb_helpers.cc (right): https://codereview.chromium.org/2957843002/diff/60001/runtime/vm/gdb_helpers.cc#newcode15 ...
3 years, 5 months ago (2017-06-29 21:06:12 UTC) #10
rmacnak
https://codereview.chromium.org/2957843002/diff/40001/runtime/vm/gdb_helpers.cc File runtime/vm/gdb_helpers.cc (right): https://codereview.chromium.org/2957843002/diff/40001/runtime/vm/gdb_helpers.cc#newcode8 runtime/vm/gdb_helpers.cc:8: #include "lib/stacktrace.h" On 2017/06/29 21:06:11, zra wrote: > Alphabetize ...
3 years, 5 months ago (2017-06-29 21:19:00 UTC) #11
zra
lgtm
3 years, 5 months ago (2017-06-29 21:28:01 UTC) #12
rmacnak
3 years, 5 months ago (2017-06-29 21:31:51 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
f1b7e8ed8cb035ec8c4a8eca3b6536d06e97f84f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698