This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH with testcase] Bug 11568 - delete thread-specific breakpoint on the thread exit
- From: Muhammad Waqas <mwaqas at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 2 Sep 2013 15:31:54 +0500
- Subject: Re: [PATCH with testcase] Bug 11568 - delete thread-specific breakpoint on the thread exit
- Authentication-results: sourceware.org; auth=none
- References: <521CF7D0 dot 5040801 at redhat dot com> <1377692710-2885-1-git-send-email-mwaqas at codesourcery dot com> <5220C80D dot 5030502 at redhat dot com> <52240E9A dot 4030708 at codesourcery dot com> <52244EBE dot 1080107 at redhat dot com> <52245E5D dot 2030806 at codesourcery dot com> <5224675A dot 20104 at redhat dot com>
On 09/02/2013 03:24 PM, Pedro Alves wrote:
> So in your case the bug doesn't trigger because
> set_current_sal_from_frame, called from print_stack_frame, does
> nothing if the frame (in this case pthread_join's) doesn't have
> a symtab:
>
> void
> set_current_sal_from_frame (struct frame_info *frame, int center)
> {
> struct symtab_and_line sal;
>
> find_frame_sal (frame, &sal);
> if (sal.symtab)
> {
> if (center)
> sal.line = max (sal.line - get_lines_to_list () / 2, 1);
> set_current_source_symtab_and_line (&sal);
> }
> }
Hmm, Thanks Got it.