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 v5 1/9] btrace: Count gaps as one instruction explicitly.


> This gives all instructions, including gaps, a unique number.  Add a function
> to retrieve the error code if a btrace instruction iterator points to an
> invalid instruction.
>
> 2017-01-27  Tim Wiederhake  <tim.wiederhake@intel.com>
>
> gdb/ChangeLog:
>
> 	* btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
> 	(ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
> 	btrace_find_insn_by_number): Remove special case for gaps.
> 	* btrace.h (btrace_insn_get_error): New export.
> 	(btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
> 	* record-btrace.c (btrace_insn_history): Print number for gaps.
> 	(record_btrace_info, record_btrace_goto): Handle gaps.

LGTM


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