Use std::string to simplify build_id_to_debug_bfd
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 8 Mar 2018 23:57:53 +0000 (18:57 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 8 Mar 2018 23:57:53 +0000 (18:57 -0500)
commit00b400574aa75c1c5fe469233ab16930e2d8a4c8
tree6653d9755a017c9f43fa7460a4bfaa4cb4beeafe
parenta8dbfd5853e3a5f7f2a3ca817e96d9e0759061a2
Use std::string to simplify build_id_to_debug_bfd

Using std::string here makes the string building simpler thank playing
with char*.  A stack allocation is replaced with heap allocation, but
I don't think this is really performance-critical code.

gdb/ChangeLog:

* build-id.c (build_id_to_debug_bfd): Use std::string.
gdb/ChangeLog
gdb/build-id.c