diff options
author | Luis Machado <luis.machado@linaro.org> | 2020-08-13 10:32:52 -0300 |
---|---|---|
committer | Luis Machado <luis.machado@linaro.org> | 2020-08-13 10:32:52 -0300 |
commit | a5353ae6cf1716c0ff6f7037dc3c336f0d99ecc1 (patch) | |
tree | 855e49a518963e4865728d74a02d433945909918 /gdb/testsuite/gdb.ada/arrayptr.exp | |
parent | ece5bc8ac303ccf03dd066ce7e1cba3a12293e40 (diff) | |
download | binutils-gdb-a5353ae6cf1716c0ff6f7037dc3c336f0d99ecc1.tar.gz |
[ARM, sim] Fix build failure with -Werror (PR26365)
There is a bit of a situation in the ARM sim with regards to the handling
of argv. sim_open () gets a const char **argv, but ARM's sim_open gets
clever and decides to modify argv in place via sim_target_parse_command_line.
I'm not sure why.
In any case, here's a fix that makes the code modify a copy of argv instead.
sim/arm/ChangeLog:
2020-08-13 Luis Machado <luis.machado@linaro.org>
PR sim/26365
* wrapper.c (sim_target_parse_command_line): Free discarded argv
entries.
(sim_open): Use a duplicate of argv instead of the original argv.
Diffstat (limited to 'gdb/testsuite/gdb.ada/arrayptr.exp')
0 files changed, 0 insertions, 0 deletions