Forward port patches from gdb-11.1, as they still apply clean, hence still assumed to be relevant. Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>