Should probably handle gdb too.