]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/rx/ChangeLog
sim/rx: fix an issue where we try to modify a const string
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Jan 2021 17:17:08 +0000 (17:17 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:01:07 +0000 (11:01 +0000)
commit93a01471f3df559fffc567247288b3301620c4d7
treeca8460281314070cdfc55776b9aee79056414a3d
parent0309f9549d8ab359f60790427ca97579dd26eafb
sim/rx: fix an issue where we try to modify a const string

While experimenting with switching on warnings for the rx simulator I
discovered this bug.  In sim_do_command we get passed a 'const char *'
argument.  We create a copy of this string to work with locally, but
then while processing this we accidentally switch back to reference
the original string.

sim/rx/ChangeLog:

* gdb-if.c (sim_do_command): Work with a copy of the command.
sim/rx/ChangeLog
sim/rx/gdb-if.c