scripts/gdb: add $lx_clk_core_lookup function