gdb: get_frame_language now takes a frame parameter.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 14 Jul 2015 14:07:35 +0000 (15:07 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 7 Aug 2015 09:54:59 +0000 (11:54 +0200)
commit7ff38b1c898be5db053193f26d6a3a1d8a6074e8
tree3bfa2bd46803f98fc89c6cd60d777ff5c27e197e
parent0b45135ec1364f9d0c850a52ce05cf4ffb038021
gdb: get_frame_language now takes a frame parameter.

As part of a drive to remove deprecated_safe_get_selected_frame, make
the get_frame_language function take a frame parameter.  Given the name
of the function this actually seems to make a lot of sense.

The task of fetching a suitable frame is then passed to the calling
functions.  For get_frame_language there are not many callers, these are
updated to get the selected frame in a suitable way.

gdb/ChangeLog:

* language.c (show_language_command): Find selected frame before
asking for the language of that frame.
(set_language_command): Likewise.
* language.h (get_frame_language): Add frame parameter.
* stack.c (get_frame_language): Add frame parameter, assert
parameter is not NULL, update comment and reindent.
* top.c (check_frame_language_change): Pass the selected frame
into get_frame_language.
gdb/ChangeLog
gdb/language.c
gdb/language.h
gdb/stack.c
gdb/top.c
This page took 0.025649 seconds and 4 git commands to generate.