1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00
serenity/Userland/Libraries/LibJIT
Jesús (gsus) Lapastora bc70144df1 LibJIT: Enable registering JITted objects into GDB
The new JIT::GDB namespace enables registering JITted objects into GDB
dynamically.

Its clients just have to ensure the memory they give to
`register_into_gdb` is in a format that GDB can understand, either by
generating an object file in memory with debug info + symbols or by
registering a custom debug info parser.
None of these are implemented by this API; it only implements the
registering part and lets the client to choose the data format.

GDB JIT Interface:
https://sourceware.org/gdb/current/onlinedocs/gdb.html/JIT-Interface.html#JIT-Interface
Things to take into account from v8's docs, some of which we may
improve: https://v8.dev/docs/gdb-jit#known-limitations
2023-12-07 15:34:38 -07:00
..
X86_64 LibJS/JIT: Add a builtin for Math.abs 2023-11-17 19:06:25 +01:00
Assembler.cpp LibJIT+LibJS: Move JIT::Assembler into a new LibJIT library 2023-10-27 19:07:22 +02:00
Assembler.h LibJIT: Only include the Assembler header for the current platform 2023-11-06 10:28:05 +01:00
CMakeLists.txt LibJIT: Enable registering JITted objects into GDB 2023-12-07 15:34:38 -07:00
GDB.cpp LibJIT: Enable registering JITted objects into GDB 2023-12-07 15:34:38 -07:00
GDB.h LibJIT: Enable registering JITted objects into GDB 2023-12-07 15:34:38 -07:00