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 v2 00/11] btrace: Turn linked list of function call segments into vector


Hi Yao!

The one place I remembered from the top of my head (new_thread in thread.c) was C++ified in the meantime.  I believe there was some place in remote.c as well, but I can't find any evidence at the moment.

I tried adding a non-trivial constructor to struct btrace_thread_info to see if any of the non-pod-poisoning-patches kicked in -- which did not happen.

So all in all, thanks for noticing me, I'll rewrite this series to use std::vector.

TIm

> -----Original Message-----
> From: Yao Qi [mailto:qiyaoltc@gmail.com]
> Sent: Monday, May 8, 2017 11:03 AM
> To: Wiederhake, Tim <tim.wiederhake@intel.com>
> Cc: gdb-patches@sourceware.org; Metzger, Markus T
> <markus.t.metzger@intel.com>
> Subject: Re: [PATCH v2 00/11] btrace: Turn linked list of function call
> segments into vector
> 
> Tim Wiederhake <tim.wiederhake@intel.com> writes:
> 
> >   In some
> > instances, struct btrace_thread_info is initialized by memset'ing it to
> 0x00,
> > so we can't use std::vector (yet).
> 
> What are these instances?  I can't find them.
> 
> --
> Yao (齐尧)
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

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