sim: m32c/rl78/rx: fix command parsing
authorMike Frysinger <vapier@gentoo.org>
Wed, 5 May 2021 18:54:33 +0000 (14:54 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 6 May 2021 03:33:16 +0000 (23:33 -0400)
commit75070a4ede3760d4185c994200b40c9a35687eb4
treec39fa3c90b5477908c863a51e7f3b5591e7420bb
parent4467df35a93e4c8e5ff7549e8d23324c64f527bd
sim: m32c/rl78/rx: fix command parsing

Use buildargv to avoid writing to const memory and freeing invalid
pointers, and to avoid doing any string parsing ourselves.
sim/m32c/ChangeLog
sim/m32c/gdb-if.c
sim/rl78/ChangeLog
sim/rl78/gdb-if.c
sim/rx/ChangeLog
sim/rx/gdb-if.c