* gdbtypes.h (struct language_defn): Add forward declaration.
(lookup_typename): Add LANGUAGE and GDBARCH parameters. (lookup_unsigned_typename): Likewise. (lookup_signed_typename): Likewise. * gdbtypes.c (lookup_typename): Add LANGUAGE and GDBARCH parameters. Use them instead of current_language and current_gdbarch. (lookup_unsigned_typename): Add LANGUAGE and GDBARCH parameters. Pass them to lookup_typename. (lookup_signed_typename): Likewise. * c-exp.y: Pass parse_language and parse_gdbarch to lookup_unsigned_typename and lookup_signed_typename. * objc-exp.y: Likewise. * m2-exp.y: Pass parse_language and parse_gdbarch to lookup_typename. * c-lang.c (evaluate_subexp_c): Pass expression language and gdbarch to lookup_typename. * printcmd.c (printf_command): Pass current language and gdbarch to lookup_typename. * python/python-type.c (typy_lookup_typename): Likewise. Include "language.h".
Showing
- gdb/ChangeLog 24 additions, 0 deletionsgdb/ChangeLog
- gdb/c-exp.y 6 additions, 2 deletionsgdb/c-exp.y
- gdb/c-lang.c 6 additions, 3 deletionsgdb/c-lang.c
- gdb/gdbtypes.c 11 additions, 9 deletionsgdb/gdbtypes.c
- gdb/gdbtypes.h 8 additions, 3 deletionsgdb/gdbtypes.h
- gdb/m2-exp.y 4 additions, 2 deletionsgdb/m2-exp.y
- gdb/objc-exp.y 6 additions, 2 deletionsgdb/objc-exp.y
- gdb/printcmd.c 6 additions, 2 deletionsgdb/printcmd.c
- gdb/python/python-type.c 3 additions, 1 deletiongdb/python/python-type.c
Loading
Please register or sign in to comment