mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
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.
This commit is contained in:
@@ -69,6 +69,8 @@
|
||||
|
||||
*/
|
||||
|
||||
#include "language.h"
|
||||
|
||||
struct symtab_and_line;
|
||||
struct frame_unwind;
|
||||
struct frame_base;
|
||||
@@ -814,4 +816,9 @@ extern struct frame_info *create_new_frame (CORE_ADDR base, CORE_ADDR pc);
|
||||
extern int frame_unwinder_is (struct frame_info *fi,
|
||||
const struct frame_unwind *unwinder);
|
||||
|
||||
/* Return the language of FRAME. */
|
||||
|
||||
extern enum language get_frame_language (struct frame_info *frame);
|
||||
|
||||
|
||||
#endif /* !defined (FRAME_H) */
|
||||
|
||||
Reference in New Issue
Block a user