Fix remote-sim.c compilation
authorTom Tromey <tromey@adacore.com>
Mon, 4 Oct 2021 15:14:26 +0000 (09:14 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 4 Oct 2021 15:14:26 +0000 (09:14 -0600)
commitabe19f1119ef3d33acd9c8699ebeb110feed55d8
treec431c46944ded2f3e469c5340e2a3e42e35b6faa
parent6619a08b25ed618205bb20f9dd069511d60b8df8
Fix remote-sim.c compilation

The change "make string-like set show commands use std::string
variable" caused remote-sim.c to fail to build.  The issue is that the
code does:

  const std::string &sysroot = gdb_sysroot;
  if (is_target_filename (sysroot))
    sysroot += strlen (TARGET_SYSROOT_PREFIX);

... which isn't valid.

This patch changes this code to use a 'const char *' again, fixing the
build.
gdb/remote-sim.c