Re: [PATCH with testcase] Bug 11568 - delete thread-specific breakpoint on the thread exit

Muhammad Waqas
2013-09-02T10:32:09Z

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.