gdb: fix warnings in bsd-kvm.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 3 Aug 2021 22:13:41 +0000 (18:13 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 4 Aug 2021 19:25:52 +0000 (15:25 -0400)
commited0dcb1fd3356fa0c4ddef81eb395fbe27ec07a3
treea95cf6014bca8bad9fd9e77f6ecd56baa91b47a8
parenta164bbda300d1da6f97bfa14ba7fa22475e61d17
gdb: fix warnings in bsd-kvm.c

Building on OpenBSD, I get warnings like:

      CXX    bsd-kvm.o
    /home/simark/src/binutils-gdb/gdb/bsd-kvm.c:241:18: error: ISO C++11 does not allow conversion from string literal to 'char *' [-Werror,-Wwritable-strings]
      nl[0].n_name = "_dumppcb";
                     ^

Silence those by adding casts.

Change-Id: I2bef4eebcc306762a4e3e5b5c52f67ecf2820503
gdb/bsd-kvm.c