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 with testcase] Bug 11568 - delete thread-specific breakpoint on the thread exit


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.


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