Ignore gdb register writes that don't actually change register values.

gdb is observed to (sometimes) try to set orig_eax to -1 when
restarting.

Resolves #1236.