[backfire] scripts/remote-gdb: merge r23406, r23407 and r26885