For contributors - sloanyang/raspberrry2v8 GitHub Wiki

Useful info for project contributors.

CLI

https://github.com/runtimejs/runtime-cli

npm install runtime-cli -g

Tested GCC versions

Build OK: 4.8.0, 4.8.1, 4.8.3, 4.9.1
Build FAIL: 4.9.0 (gcc bug when compiling libc++)

Kernel Debugging

GDB install:

export PREFIX="$HOME/opt/cross"
export PATH="$PREFIX/bin:$PATH"

wget https://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.gz
tar -xf gdb-7.8.tar.gz
rm gdb-7.8.tar.gz
mkdir build-gdb
cd build-gdb
../gdb-7.8/configure --target=x86_64-pc-linux-gnu --prefix="$PREFIX"
make
make install

Connect to running QEMU:

x86_64-pc-linux-gnu-gdb 
(gdb) target remote localhost:1234 
(gdb) symbol-file runtimejs