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: Updated patch for Bug 13217 - thread apply all detach throws a SEGFAULT


>>>>> "Ali" == ali anwar <ali_anwar@codesourcery.com> writes:

Ali> Please find attached updated patch.

Thanks.

Ali> +      struct thread_info **tp_array;
Ali> +      struct thread_info *tp;
Ali> +      int i, k;
Ali> +      i = 0;

Either there should be a blank line between the declarations and the
assignment here, or the declaration should read "int i = 0, k;".

This patch is ok with this fixed.

I found out while reviewing this that thread refcounting is weird.
It is only checked in delete_thread_1, not at all what I was expecting :-)

Tom


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