I am working with a pwn question, and I want to debug v8 using gdb.
But in release version, I can not use job command.
And in a debug version, I will got abort when I called the function which is the main function in this pwn question.
And I have tried to change some #define
code, but I failed.
And I tried to pass some compile args, I failed too.
So, how can I solve it?
For Release mode:
The job
GDB macro should be functional if you add v8_enable_object_print = true
to your args.gn
(using gn args out/x64.release
). Obviously, debugging a Release-mode binary will be a somewhat "interesting" experience.
For Debug mode: Bypassing a DCHECK is easy: just comment it out and recompile.
And of course, if you find any bugs, please report them at crbug.com/v8/new :-)