]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gdbserver/server.c
Refactor handle_qxfer_libraries and friends to use std::string
authorSimon Marchi <simon.marchi@ericsson.com>
Sat, 16 Sep 2017 12:22:11 +0000 (14:22 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Sat, 16 Sep 2017 12:22:11 +0000 (14:22 +0200)
commit04fd3ba9b63936653fff2b1657b3824c94a8efd6
tree8ae27e4acf43f6a185eaf5d525454a87c1b799a6
parent5e1875543df7413d3cbc3831390445e347064b75
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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c