This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]