misc gdb stuff