Issue 1804 in v8: GDBJIT: gdbjit cannot be enabled since NewGC landed

13 views
Skip to first unread message

codesite...@google.com

unread,
Nov 2, 2011, 7:32:12 AM11/2/11
to v8-...@googlegroups.com
Status: New
Owner: ----

New issue 1804 by kalm...@homejinni.com: GDBJIT: gdbjit cannot be enabled
since NewGC landed
http://code.google.com/p/v8/issues/detail?id=1804

Compiling with gdbjit=on (on any architecture) fails at two points.
First:

src/gdb-jit.cc:1130: error: 'JavaScriptFrameConstants' has not been declared
src/gdb-jit.cc:1178: error: 'JavaScriptFrameConstants' has not been declared
src/gdb-jit.cc:1190: error: 'JavaScriptFrameConstants' has not been declared
src/gdb-jit.cc:1201: error: 'StandardFrameConstants' has not been declared

This can be fixed by including frames-inl.h in gdb-jit.cc.

Second:
src/mark-compact.cc:471: error: 'compacting_collection_' was not declared
in this scope
This seems like leftover code from the old GC system, but I assume
something like this (disabled compacting) should be ported to NewGC.

codesite...@google.com

unread,
Nov 2, 2011, 10:31:44 AM11/2/11
to v8-...@googlegroups.com
Updates:
Status: Accepted
Owner: mstar...@chromium.org
Cc: veg...@chromium.org
Labels: Priority-Medium NewGC

Comment #1 on issue 1804 by mstar...@chromium.org: GDBJIT: gdbjit cannot

The GDB JIT interface is a nice thing to have. Unfortunately we do not emit
code deletion notifications at the moment which GDB might require. We might
be lucky for the non-code-compacting mode, but once code-compaction is
enabled, GDB JIT is definitely broken.

I'll take this one and talk to Slava about how we could solve this.

codesite...@google.com

unread,
Jan 17, 2012, 5:34:41 AM1/17/12
to v8-...@googlegroups.com
Updates:
Labels: -Priority-Medium Priority-Low

Comment #2 on issue 1804 by mstar...@chromium.org: GDBJIT: gdbjit cannot

When a get a round TUIT.

codesite...@google.com

unread,
Mar 13, 2012, 1:58:24 AM3/13/12
to v8-...@googlegroups.com

Comment #3 on issue 1804 by yan...@chromium.org: GDBJIT: gdbjit cannot be

Issue 1999 has been merged into this issue.

codesite...@google.com

unread,
Oct 1, 2012, 3:40:07 AM10/1/12
to v8-...@googlegroups.com

Comment #4 on issue 1804 by yan...@chromium.org: GDBJIT: gdbjit cannot be
Issue 2352 has been merged into this issue.

codesite...@google.com

unread,
Oct 1, 2012, 3:45:07 AM10/1/12
to v8-...@googlegroups.com

Comment #5 on issue 1804 by yan...@chromium.org: GDBJIT: gdbjit cannot be
Issue 2350 has been merged into this issue.

codesite...@google.com

unread,
Oct 1, 2012, 4:10:56 AM10/1/12
to v8-...@googlegroups.com

Comment #6 on issue 1804 by JamesMi...@gmail.com: GDBJIT: gdbjit
cannot be enabled since NewGC landed
http://code.google.com/p/v8/issues/detail?id=1804

I have stubbed out the code so that it does compile but does not do
anything : https://github.com/h4ck3rm1k3/node

codesite...@google.com

unread,
Oct 9, 2012, 5:08:27 AM10/9/12
to v8-...@googlegroups.com

Comment #7 on issue 1804 by mstar...@chromium.org: GDBJIT: gdbjit cannot
Fixed in r12679. Compilation fixed and smoke-tested functionality. We
thought about enabling GDBJIT in debug mode (the compile flag not the
runtime flag) to avoid future breakage, so I'll keep this issue open to
track that.

codesite...@google.com

unread,
Oct 10, 2012, 10:45:27 AM10/10/12
to v8-...@googlegroups.com
Updates:
Status: Fixed

Comment #8 on issue 1804 by mstar...@chromium.org: GDBJIT: gdbjit cannot
Enabled compilation on Linux in r12685.

Reply all
Reply to author
Forward
0 new messages