This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix GDB builds that include the simulator
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 18 Jul 2017 07:05:49 -0400
- Subject: [binutils-gdb] Fix GDB builds that include the simulator
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 386535dd91432b784f6a46f8a92c6a599ba30174 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 386535dd91432b784f6a46f8a92c6a599ba30174
Fix GDB builds that include the simulator
The completer rewrite series missed adjusting target sim to the new
completion_tracker interface.
src/gdb/remote-sim.c: In function void _initialize_remote_sim():
src/gdb/remote-sim.c:1350:46: error: invalid conversion from VEC_char_ptr* (*)(cmd_list_element*, const char*, const char*) to void (*)(cmd_list_element*, completion_tracker&, const char*, const char*) [-fpermissive]
set_cmd_completer (c, sim_command_completer);
^
This commit fixes it, and also takes care to be exception safe (the
previous code would leak if growing the VEC throws).
Tested manually with a --target=arm-none-eabi build.
gdb/ChangeLog:
2017-07-18 Pedro Alves <palves@redhat.com>
* remote-sim.c (sim_command_completer): Adjust to work with a
completion_tracker instead of a VEC.