This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3 3/3] btrace, frame: fix crash in get_frame_type
- From: Pedro Alves <palves at redhat dot com>
- To: Markus Metzger <markus dot t dot metzger at intel dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 11 Feb 2016 16:26:24 +0000
- Subject: Re: [PATCH v3 3/3] btrace, frame: fix crash in get_frame_type
- Authentication-results: sourceware.org; auth=none
- References: <1455207283-12660-1-git-send-email-markus dot t dot metzger at intel dot com> <1455207283-12660-3-git-send-email-markus dot t dot metzger at intel dot com>
On 02/11/2016 04:14 PM, Markus Metzger wrote:
> 2016-02-11 Markus Metzger <markus.t.metzger@intel.com>
>
> gdb/
> * frame.h (skip_tailcall_frames): Update comment.
> * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
> if only artificial frames are found. Update comment.
> (frame_unwind_caller_id): Handle NULL return.
> (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
> skip_artificial_frames does not return NULL.
> (frame_pop): Add an error if only tailcall frames are found.
> * infcmd.c (finish_command): Move skip_tailcall_frames call into forward-
> execution case. Add an error if only tailcall frames are found.
>
> testsuite/
> * gdb.btrace/tailcall-only.exp: New.
> * gdb.btrace/tailcall-only.c: New.
> * gdb.btrace/x86_64-tailcall-only.S: New.
> * gdb.btrace/i686-tailcall-only.S: New.
OK.
Thanks,
Pedro Alves