btrace: Transfer ownership of pointers.
authorTim Wiederhake <tim.wiederhake@intel.com>
Tue, 30 May 2017 10:47:37 +0000 (12:47 +0200)
committerTim Wiederhake <tim.wiederhake@intel.com>
Tue, 30 May 2017 10:49:25 +0000 (12:49 +0200)
commit17b89b34b8d7a5a8b713c92a9ebe689c6edd6798
tree40ed5f9a97eb2f061f5520743ef78e81735a561d
parent2b51eddc5503ea84d48c5b3b3ec3388eba440451
btrace: Transfer ownership of pointers.

Directly insert new btrace_function pointers into the vector and have the
vector own these pointers.  This allows us to later retrieve these objects by
their number directly after creation whereas at the moment we have to wait
until the vector is fully populated.

This requires to pull btrace_thread_info through different functions but
cleans up the code for freeing the trace.
gdb/ChangeLog
gdb/btrace.c
This page took 0.027362 seconds and 4 git commands to generate.