gdb: Split func_command into two parts.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 5 May 2018 14:55:58 +0000 (15:55 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 24 May 2018 21:39:03 +0000 (22:39 +0100)
commit39f0c2040f13ae0eb3405b8cf2ff6491c6f354a5
tree26a255c831c8888e9e815f810551903b9084f2da
parentd392224a0942df2f23b1149a71f62afc7f34beb8
gdb: Split func_command into two parts.

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, and so the core of func_command is now split out into a
separate function.

gdb/ChangeLog:

* stack.c (select_and_print_frame): Delete.
(struct function_bounds): Move struct within function.
(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.
gdb/ChangeLog
gdb/stack.c
This page took 0.026581 seconds and 4 git commands to generate.