This makes us gdb built on cross compile environment. (part of PR#8369).
(Will replace ../gdb later on.)