gdb/linux-record fixes

Marcin Kościelnicki
2015-10-17T21:41:33Z

When working on process record and replay support for s390-linux,
I found quite a few problems in syscall handling. I fixed the most
important of these in this patchset. Please review.