aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pie
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-08-07 12:09:37 +0200
committerSimon Marchi <simon.marchi@ericsson.com>2017-08-07 12:13:00 +0200
commit74cbb09e74dda17fc79e2ce709116780a90310ef (patch)
tree493f2975f7b9b676ee041f3a75f7155717a8622d /ld/testsuite/ld-pie
parentb7a18930e3925c4092bd975e95bc3603aa1418d9 (diff)
downloadbinutils-74cbb09e74dda17fc79e2ce709116780a90310ef.zip
binutils-74cbb09e74dda17fc79e2ce709116780a90310ef.tar.gz
binutils-74cbb09e74dda17fc79e2ce709116780a90310ef.tar.bz2
remote-sim.c: Fix arg variables conflicts
The recent change introducing gdb_argv introduced some build failures in remote-sim.c. /home/emaisin/src/binutils-gdb/gdb/remote-sim.c: In function 'void gdbsim_load(target_ops*, const char*, int)': /home/emaisin/src/binutils-gdb/gdb/remote-sim.c:573:22: error: conflicting declaration 'gdb_argv argv' gdb_argv argv (args); ^ /home/emaisin/src/binutils-gdb/gdb/remote-sim.c:565:10: note: previous declaration as 'char** argv' char **argv; ^~~~ /home/emaisin/src/binutils-gdb/gdb/remote-sim.c: In function 'void gdbsim_open(const char*, int)': /home/emaisin/src/binutils-gdb/gdb/remote-sim.c:730:25: error: declaration of 'gdb_argv args' shadows a parameter gdb_argv args (arg_buf); In gdbsim_load, the new gdb_argv object conflicts with old char **argv variable. I think the old variable should be removed. In gdbsim_open, the new gdb_argv object conflicts with the args parameter. This patch renames it to argv. Built-tested for a mips host. gdb/ChangeLog: * remote-sim.c (gdbsim_load): Remove char **argv local variable. (gdbsim_open): Rename gdb_argv args object to argv.
Diffstat (limited to 'ld/testsuite/ld-pie')
0 files changed, 0 insertions, 0 deletions