diff options
author | Pedro Alves <palves@redhat.com> | 2017-07-18 11:38:17 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-07-18 11:38:17 +0100 |
commit | 386535dd91432b784f6a46f8a92c6a599ba30174 (patch) | |
tree | dde4a840f347150c793c61eae71cb1769ceae0b7 /gdb/python/py-record.c | |
parent | 0a79bef4f206d89214c48454a4302d6b6f8f68c0 (diff) | |
download | gdb-386535dd91432b784f6a46f8a92c6a599ba30174.zip gdb-386535dd91432b784f6a46f8a92c6a599ba30174.tar.gz gdb-386535dd91432b784f6a46f8a92c6a599ba30174.tar.bz2 |
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.
Diffstat (limited to 'gdb/python/py-record.c')
0 files changed, 0 insertions, 0 deletions