[binutils-gdb] Refactor handle_qxfer_libraries and friends to use std::string

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Sat Sep 16 14:26:00 GMT 2017


*** TEST RESULTS FOR COMMIT 04fd3ba9b63936653fff2b1657b3824c94a8efd6 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 04fd3ba9b63936653fff2b1657b3824c94a8efd6

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.



More information about the Gdb-testers mailing list