diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-16 14:22:11 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-16 14:22:11 +0200 |
commit | 04fd3ba9b63936653fff2b1657b3824c94a8efd6 (patch) | |
tree | 8ae27e4acf43f6a185eaf5d525454a87c1b799a6 /elfcpp | |
parent | 5e1875543df7413d3cbc3831390445e347064b75 (diff) | |
download | gdb-04fd3ba9b63936653fff2b1657b3824c94a8efd6.zip gdb-04fd3ba9b63936653fff2b1657b3824c94a8efd6.tar.gz gdb-04fd3ba9b63936653fff2b1657b3824c94a8efd6.tar.bz2 |
Refactor handle_qxfer_libraries and friends to use std::string
Using std::string in handle_qxfer_libraries and friends allow to
simplify the code. We don't have to manually free the buffer, and we
don't have to pre-compute the required space.
gdb/gdbserver/ChangeLog:
* server.c (accumulate_file_name_length): Remove.
(emit_dll_description): Adjust to std::string change.
(handle_qxfer_libraries): Use std::string to hold document.
Diffstat (limited to 'elfcpp')
0 files changed, 0 insertions, 0 deletions