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 8/9] gdb: Split func_command into two parts.


On 09/11/2015 07:49 PM, Andrew Burgess wrote:
> The func_command function is used to emulate the dbx 'func' command.
> However, finding a stack frame based on function name might be a useful
> feature, 

Indeed.

> and so the core of func_command is now split out into a
> separate function.
> 
> gdb/ChangeLog:
> 
> 	* stack.c (select_and_print_frame): Delete.
> 	(func_command): Most content moved into new function
> 	find_frame_for_function, use new function, print result, add
> 	function comment.
> 	(find_frame_for_function): New function, now returns a result.

OK.

Thanks,
Pedro Alves


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