#!/usr/bin/env bash

port=$(pgrep -fx "\[Genode\] init -> vfs_lwext4_fs")
gdb -p $port \
    -ex "set confirm off" \
    -ex "symbol-file build/x86_64/debug/squid" \
    -ex "add-symbol-file build/x86_64/debug/ld-linux.lib.so" \
    -ex "add-symbol-file build/x86_64/debug/vfs_lwext4.lib.so" \
    -ex "b Vfs::Lwext4_vfs_file_system::rename" \
    -ex "c &"

