gdb/record-full: Use xmalloc instead of alloca for temporary memory storage.