[PATCH 3/7] btrace: Use binary search to find instruction.

Simon Marchi simon.marchi@polymtl.ca
Wed Nov 2 11:24:00 GMT 2016


On 2016-11-02 06:01, Wiederhake, Tim wrote:
> struct btrace_thread_info is initialized by memset'ing it to zero. If
> I'm not mistaken we can't do that if the struct contains a C++ member
> with a constructor.

Indeed, the allocations/deallocations would need to be replaced with 
new/delete, and a constructor to zero-initialize the other members.



More information about the Gdb-patches mailing list