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 v2 7/8] Python: Move and rename gdb.BtraceFunction


Tim Wiederhake <tim.wiederhake@intel.com> writes:

> Remove gdb.BtraceFunctionCall and replace by gdb.FunctionSegment.  Additionally,
> rename prev_segment and next_segment to prev and next.
>
> 2017-04-21  Tim Wiederhake  <tim.wiederhake@intel.com>
>
> gdb/ChangeLog:
> 	* python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
> 	Remove.
> 	(btrace_func_from_recpy_func): New function.
> 	(btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
> 	(btpy_call_level, btpy_call_symbol, btpy_call_instructions,
> 	btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
> 	(recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
> 	recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
> 	Also, use new helper functions.
> 	(btpy_list_item): Use new helper functions.
> 	(recpy_bt_function_call_history): Use new type name.
> 	(btpy_call_getset): Remove.
> 	(gdbpy_initialize_btrace): Remove code to initialize
> 	gdb.BtraceFunctionCall.
> 	* python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
> 	recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
> 	recpy_bt_func_prev, recpy_bt_func_next): New export.
> 	* python/py-record.c (recpy_func_type): New static object.
> 	(recpy_func_new, recpy_func_level, recpy_func_symbol,
> 	recpy_func_instructions, recpy_func_up, recpy_func_prev,
> 	recpy_func_next): New function.
> 	(recpy_element_hash, recpy_element_richcompare): Updated comment.
> 	(recpy_func_getset): New static object.
> 	(gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
> 	* python/py-record.h (recpy_func_type, recpy_func_new): New export.
>
> gdb/doc/ChangeLog:
> 	* python.texi (Recording in Python): Replace gdb.BtraceFunction with
> 	gdb.RecordFunctionSegment.  Rename prev_sibling and next_sibling to
> 	prev and next.
>
> gdb/testsuite/ChangeLog:
> 	* gdb.python/py-record-btrace.exp: Rename prev_sibling and next_sibling
> 	to prev and next.

LGTM.

-- 
Yao (齐尧)


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