Re: [v8-dev] Oddball::kArgumentMarker & out/Release/obj/gen/debug-support.cc

2016-02-17 Thread Ben Noordhuis
On Wed, Feb 17, 2016 at 6:59 PM, Peter Schow wrote: > I'm seeing a V8 build failure with one of the files generated at build > time: > > out/Release/obj/gen/debug-support.cc:45:35: error: 'kArgumentMarker' is > not a member of 'v8::internal::Oddball' > int

[v8-dev] Oddball::kArgumentMarker & out/Release/obj/gen/debug-support.cc

2016-02-17 Thread Peter Schow
I'm seeing a V8 build failure with one of the files generated at build time: out/Release/obj/gen/debug-support.cc:45:35: error: 'kArgumentMarker' is not a member of 'v8::internal::Oddball' int v8dbg_OddballArgumentMarker = Oddball::kArgumentMarker; I know that kArgumentMarker was

Re: [v8-dev] How to debug v8 natives

2016-02-17 Thread Jochen Eisinger
no, that's not supported. On Wed, Feb 17, 2016 at 2:11 PM wrote: > There is no unique address of a js function. The code for the js function >> can move around, it can be compiled multiple times, etc.. >> > I know, but in particular point of time I can look for address of a

Re: [v8-dev] How to debug v8 natives

2016-02-17 Thread dima00782
> > There is no unique address of a js function. The code for the js function > can move around, it can be compiled multiple times, etc.. > I know, but in particular point of time I can look for address of a js function and go to it. V8 doesn't support this for debug purpose in gdb? On

Re: [v8-dev] How to debug v8 natives

2016-02-17 Thread Jochen Eisinger
There is no unique address of a js function. The code for the js function can move around, it can be compiled multiple times, etc.. On Wed, Feb 17, 2016 at 1:32 PM wrote: > But, where I need stop gdb in v8 so that it gives me address for js > function? > > On Wednesday,

Re: [v8-dev] How to debug v8 natives

2016-02-17 Thread dima00782
But, where I need stop gdb in v8 so that it gives me address for js function? On Wednesday, February 17, 2016 at 5:34:36 PM UTC+6, Yang Guo wrote: > > I'd google for "gdb set break point at address" :) > > On Wed, Feb 17, 2016, 09:42 wrote: > >> Thank Jochen, but I don't

Re: [v8-dev] How to debug v8 natives

2016-02-17 Thread Yang Guo
I'd google for "gdb set break point at address" :) On Wed, Feb 17, 2016, 09:42 wrote: > Thank Jochen, but I don't clearly understand how to set breakpoint on JS > function? I can set breakpoints only on c++ functions in gdb. > > On Wednesday, February 17, 2016 at 2:07:04

Re: [v8-dev] How to debug v8 natives

2016-02-17 Thread dima00782
Thank Jochen, but I don't clearly understand how to set breakpoint on JS function? I can set breakpoints only on c++ functions in gdb. On Wednesday, February 17, 2016 at 2:07:04 PM UTC+6, Jochen Eisinger wrote: > > V8 will move code objects around during garbage collection. If you want to >

Re: [v8-dev] How to debug v8 natives

2016-02-17 Thread Jochen Eisinger
V8 will move code objects around during garbage collection. If you want to debug code in code objects, you'll have an easier time if you disable this by passing --nocompact_code_space. Otherwise, using the regular commands to set breakpoints in gdb should work just fine. On Wed, Feb 17, 2016 at