gdb: Move get_frame_language from stack.c to frame.c.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 4 Aug 2015 14:42:03 +0000 (15:42 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 7 Aug 2015 09:55:20 +0000 (11:55 +0200)
commit060967202b8def804d9afccad343d2eaef8a81cf
treeb8f2425d843495f217fc1262949ba2ff92aa8c9e
parent7ff38b1c898be5db053193f26d6a3a1d8a6074e8
gdb: Move get_frame_language from stack.c to frame.c.

The get_frame_language feels like it would be more at home in frame.c
rather than in stack.c, while the declaration, that is currently in
language.h can be moved into frame.h to match.

A couple of new includes are added, but otherwise no substantial change
here.

gdb/ChangeLog:

* stack.c (get_frame_language): Moved ...
* frame.c (get_frame_language): ... to here.
* language.h (get_frame_language): Declaration moved to frame.h.
* frame.h: Add language.h include, for language enum.
(get_frame_language): Declaration moved from language.h.
* language.c: Add frame.h include.
* top.c: Add frame.h include.
* symtab.h (struct obj_section): Declare.
(struct cmd_list_element): Declare.
gdb/ChangeLog
gdb/frame.c
gdb/frame.h
gdb/language.c
gdb/language.h
gdb/stack.c
gdb/symtab.h
gdb/top.c