[RFA] Fix inline frame crash in handle_inferior_event

Maciej W. Rozycki macro@codesourcery.com
Thu Jun 14 21:16:00 GMT 2012


On Wed, 13 Jun 2012, Jan Kratochvil wrote:

> > 	gdb/
> > 	* infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
> > 	after hiding inline functions.
> 
> This is PR backtrace/13866.
> 
> 
> > --- gdb-fsf-trunk-quilt.orig/gdb/infrun.c	2012-06-08 23:45:43.000000000 +0100
> > +++ gdb-fsf-trunk-quilt/gdb/infrun.c	2012-06-12 08:29:31.063547656 +0100
> > @@ -4084,7 +4084,13 @@ handle_inferior_event (struct execution_
> >                 && pc_at_non_inline_function (aspace,
> >                                               ecs->event_thread->prev_pc,
> >  					     &ecs->ws)))
> > -	skip_inline_frames (ecs->ptid);
> > +	{
> > +	  skip_inline_frames (ecs->ptid);
> 
> Empty line before comment.

 Applied with these changes, thanks for your review.

  Maciej



More information about the Gdb-patches mailing list