Apologies, the diff I posted was not from what I did , it seems to come from here:
http://faumarz.blogspot.com/2014/03/gdb-and-geany-ide-remote-cross-debugging...
I must have saved it at some time ago and today when I came across it, I thought it was a diff I'd done from my hacking of scope.