1. Jan 01, 2021
    • Joel Brobecker's avatar
      gdb/copyright.py: Also update sources in "gdbserver" and "gdbsupport" · ff7e39b6
      Joel Brobecker authored
      This commit adjusts GDB's copyright.py script, following two past changes:
        - gdb/gdbserver/ being move to the toplevel directory;
        - gdb/common/ being renamed to gdbsupport/.
      
      gdb/ChangeLog:
      
              * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
              to the list of directories to update.
      ff7e39b6
    • Joel Brobecker's avatar
      Update copyright year in version message for gdb, gdbserver and gdbreplay · 2b47c078
      Joel Brobecker authored
      gdb/ChangeLog:
      
              * top.c (print_gdb_version): Update copyright year.
      
      gdbserver/ChangeLog:
      
              * server.cc (gdbserver_version): Update copyright year.
              * gdbreplay.cc (gdbreplay_version): Likewise.
      2b47c078
    • Joel Brobecker's avatar
      Rotate gdb/ChangeLog · 476923f1
      Joel Brobecker authored
      As a results of the rotation, this introduces a new file which
      needed to be added to DJGPP's fnchange.lst.
      
      gdb/ChangeLog
      
             * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
      476923f1
    • Alan Modra's avatar
      PR27116, Spelling errors found by Debian style checker · f9a6a8f0
      Alan Modra authored
      	PR 27116
      bfd/
      	* xcofflink.c: Correct spelling in comments.
      binutils/
      	* coffgrok.c (do_type): Correct spelling of auxiliary in errors.
      	* doc/binutils.texi: Correct grammar.
      	* readelf.c (process_version_sections): Correct spelling of auxiliary
      	in warning.
      	* testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
      config/
      	* override.m4: Correct comment grammar.
      gas/
      	* config/tc-i386.c: Correct comment spelling.
      	* config/tc-riscv.c: Likewise.
      	* config/tc-s390.c: Correct comment grammar.
      	* doc/c-i386.texi: Correct spelling.
      	* doc/c-s390.texi: Correct grammar.
      gold/
      	* tilegx.cc: Correct comment spelling.
      gprof/
      	* README: Correct grammar.
      	* gprof.texi: Likewise.
      include/
      	* coff/internal.h: Correct comment spelling.
      	* coff/sym.h: Likewise.
      	* opcode/aarch64.h: Likewise.
      ld/
      	* configure.tgt: Correct comment grammar.
      	* emultempl/m68hc1xelf.em: Likewise.
      	* ld.texi: Correct grammar.
      f9a6a8f0
    • Alan Modra's avatar
      250d07de
    • Alan Modra's avatar
      Add libctf to update-copyright.py · f192b314
      Alan Modra authored
      f192b314
    • Alan Modra's avatar
      ChangeLog rotation · c2795844
      Alan Modra authored
      c2795844
    • GDB Administrator's avatar
      Automatic date update in version.in · 57f60d20
      GDB Administrator authored
      57f60d20
    • Hans-Peter Nilsson's avatar
      gas: Change to "swym 0" as canonical nop insn for MMIX · 64d05a43
      Hans-Peter Nilsson authored
      While "set $0, $0" works, that's not the documented instruction to do
      nothing for MMIX.  However, I'm not changing it for "nop_type 5" as
      seen in gas.exp and org-1.s, because "set $0, $0" seems like it could
      be re-used there, for some future ISA.
      
      gas/
      	* config/tc-mmix.h (md_single_noop_insn): Change to "swym 0".
      64d05a43
    • Tom Tromey's avatar
      Update gdb.rust tests for Rust 1.49 · 9b243007
      Tom Tromey authored
      Rust 1.49 was released today, and it includes some library changes
      which caused some gdb.rust tests to fail.  This patch adapts the test
      suite to the new output.  I also verified that this continues to work
      with Rust 1.48.
      
      gdb/testsuite/ChangeLog
      2020-12-31  Tom Tromey  <tom@tromey.com>
      
      	* gdb.rust/simple.exp: Update output for Rust 1.49.
      9b243007
  2. Dec 31, 2020
  3. Dec 30, 2020
    • GDB Administrator's avatar
      Automatic date update in version.in · 705fa820
      GDB Administrator authored
      705fa820
    • H.J. Lu's avatar
      elfedit: Pass osabi to reconcat · 2e635a01
      H.J. Lu authored
      Pass osabi to reconcat to get
      
      Usage: elfedit <option(s)> elffile(s)
      ...
        --input-osabi [none|HPUX|NetBSD|GNU|Linux|Solaris|AIX|Irix|FreeBSD|TRU64|Modesto|OpenBSD|OpenVMS|NSK|AROS|FenixOS]
                                    Set input OSABI
      
      instead of
      
        --input-osabi [|FenixOS]
                                    Set input OSABI
      
      	* elfedit (usage): Pass osabi to reconcat.
      2e635a01
    • Hannes Domani's avatar
      Fix wrong method name · 6596a5d4
      Hannes Domani authored
      The objects returned by FrameDecorator.frame_args need to implement a
      method named symbol, not argument.
      
      gdb/doc/ChangeLog:
      
      2020-12-29  Hannes Domani  <ssbssa@yahoo.de>
      
      	* python.texi (Frame Decorator API): Fix method name.
      6596a5d4
  4. Dec 29, 2020
  5. Dec 28, 2020
    • GDB Administrator's avatar
      Automatic date update in version.in · adf6c633
      GDB Administrator authored
      adf6c633
    • Tom Tromey's avatar
      Simplify MULTI_SUBSCRIPT implementation · c8f02daa
      Tom Tromey authored
      The MULTI_SUBSCRIPT code in evaluate_subexp_standard has a comment
      saying that perhaps the EVAL_SKIP handling is incorrect.  This patch
      simplifies this code.  In particular, it precomputes all the indices
      in a separate loop and removes some complicated flow-control.
      
      Tested using the gdb.modula2 and gdb.dlang test suites, as these are
      the only parsers that emit MULTI_SUBSCRIPT.
      
      gdb/ChangeLog
      2020-12-27  Tom Tromey  <tom@tromey.com>
      
      	* eval.c (evaluate_subexp_standard) <case MULTI_SUBSCRIPT>:
      	Simplify.
      c8f02daa
  6. Dec 27, 2020
  7. Dec 26, 2020
  8. Dec 25, 2020
    • H.J. Lu's avatar
      gas: Update 80387 floating point 's' suffix · a12f86b9
      H.J. Lu authored
      Update 80387 floating point 's' suffix to read:
      
        * Integer constructors are '.word', '.long' or '.int', and '.quad'
           for the 16-, 32-, and 64-bit integer formats.  The corresponding
           instruction mnemonic suffixes are 's' (short), 'l' (long), and 'q'
           (quad).
      
      instead of 's' (single).
      
      	PR gas/27106
      	* doc/c-i386.texi: Update 80387 floating point 's' suffix
      a12f86b9
    • GDB Administrator's avatar
      Automatic date update in version.in · e1427153
      GDB Administrator authored
      e1427153
    • Andrew Burgess's avatar
      gdb: avoid resolving dynamic properties for non-allocated arrays · b7874836
      Andrew Burgess authored
      In PR gdb/27059 an issue was discovered where GDB would sometimes
      trigger undefined behaviour in the form of signed integer overflow.
      The problem here is that GDB was reading random garbage from the
      inferior memory space, assuming this data was valid, and performing
      arithmetic on it.
      
      This bug raises an interesting general problem with GDB's DWARF
      expression evaluator, which is this:
      
      We currently assume that the DWARF expressions being evaluated are
      well formed, and well behaving.  As an example, this is the expression
      that the bug was running into problems on, this was used as the
      expression for a DW_AT_byte_stride of a DW_TAG_subrange_type:
      
      	DW_OP_push_object_address;
      	DW_OP_plus_uconst: 88;
      	DW_OP_deref;
      	DW_OP_push_object_address;
      	DW_OP_plus_uconst: 32;
      	DW_OP_deref;
      	DW_OP_mul
      
      Two values are read from the inferior and multiplied together.  GDB
      should not assume that any value read from the inferior is in any way
      sane, as such the implementation of DW_OP_mul should be guarding
      against overflow and doing something semi-sane here.
      
      However, it turns out that the original bug PR gdb/27059, is hitting a
      more specific case, which doesn't require changes to the DWARF
      expression evaluator, so I'm going to leave the above issue for
      another day.
      
      In the test mentioned in the bug GDB is actually trying to resolve the
      dynamic type of a Fortran array that is NOT allocated.  A
      non-allocated Fortran array is one that does not have any data
      allocated for it yet, and even the upper and lower bounds of the array
      are not yet known.
      
      It turns out that, at least for gfortran compiled code, the data
      fields that describe the byte-stride are not initialised until the
      array is allocated.
      
      This leads me to the following conclusion: GDB should not try to
      resolve the bounds, or stride information for an array that is not
      allocated (or not associated, a similar, but slightly different
      Fortran feature).  Instead, each of these properties should be set to
      undefined if the array is not allocated (or associated).
      
      That is what this commit does.  There's a new flag that is passed
      around during the dynamic array resolution.  When this flag is true
      the dynamic properties are resolved using the DWARF expressions as
      they currently are, but when this flag is false the expressions are
      not evaluated, and instead the properties are set to undefined.
      
      gdb/ChangeLog:
      
      	PR gdb/27059
      	* eval.c (evaluate_subexp_for_sizeof): Handle not allocated and
      	not associated arrays.
      	* f-lang.c (fortran_adjust_dynamic_array_base_address_hack): Don't
      	adjust arrays that are not allocated/associated.
      	* gdbtypes.c (resolve_dynamic_range): Update header comment.  Add
      	new parameter which is used to sometimes set dynamic properties to
      	undefined.
      	(resolve_dynamic_array_or_string): Update header comment.  Add new
      	parameter which is used to guard evaluating dynamic properties.
      	Resolve allocated/associated properties first.
      
      gdb/testsuite/ChangeLog:
      
      	PR gdb/27059
      	* gdb.dwarf2/dyn-type-unallocated.c: New file.
      	* gdb.dwarf2/dyn-type-unallocated.exp: New file.
      b7874836
    • Andrew Burgess's avatar
      gdb: include allocated/associated properties in 'maint print type' · 5ba3b20e
      Andrew Burgess authored
      Adds the allocated and associated dynamic properties into the output
      of the 'maintenance print type' command.
      
      gdb/ChangeLog:
      
      	* gdbtypes (recursive_dump_type): Include allocated and associated
      	properties.
      5ba3b20e
    • Lancelot SIX's avatar
      gdb/gdbtypes.h: Fix comparison of uninitialized values · f8676776
      Lancelot SIX authored
      When called with an array type of unknown dimensions,
      is_scalar_type_recursive ended up comparing uninitialized values.
      
      This was picked up by the following compiler warning:
      
        CXX    gdbtypes.o
      /binutils-gdb/gdb/gdbtypes.c: In function int is_scalar_type_recursive(type*):
      /binutils-gdb/gdb/gdbtypes.c:3670:38: warning: high_bound may be used uninitialized in this function [-Wmaybe-uninitialized]
       3670 |       return high_bound == low_bound && is_scalar_type_recursive (elt_type);
            | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /binutils-gdb/gdb/gdbtypes.c:3670:38: warning: low_bound may be used uninitialized in this function [-Wmaybe-uninitialized]
      
      This patch makes sure that when dealing with an array of unknown size
      (or an array of more than 1 element), is_scalar_type_recursive returns
      false.
      
      gdb/ChangeLog:
      
      	* gdbtypes.c (is_scalar_type_recursive): Prevent comparison
      	between uninitialized values.
      
      Change-Id: Ifc005ced166aa7a065fef3e652977bae67625bf4
      f8676776
  9. Dec 24, 2020
    • Alan Modra's avatar
      SHF_GNU_RETAIN 7a and 7b tests · 99d8bab0
      Alan Modra authored
      	* testsuite/ld-elf/retain7a.d: Don't run on hppa-linux.
      	* testsuite/ld-elf/retain7b.d: Correct name.  Don't run on tic6x.
      	Allow OSABI FreeBSD.
      99d8bab0
    • Alan Modra's avatar
      asan: print_vms_time signed integer overflow · dccc31de
      Alan Modra authored
      I really don't think anyone cares about underflow of vms time values,
      but the potential segfault on a gmtime failure is worth fixing.
      
      	* readelf.c (INT64_MIN): Define if not already defined.
      	(print_vms_time): Catch 64-bit overflow when converting from
      	vms time to posix time.  Don't segfault if gmtime returns NULL.
      dccc31de
    • Alan Modra's avatar
      PR27100, final link failed: bad value · de34d428
      Alan Modra authored
      The failure on this PR is due to using the same bfd section for
      multiple output sections.  Commit 21401fc7 managed to create
      duplicate linker script output section statements, but not the actual
      bfd sections.
      
      	PR 27100
      	* ldlang.h (lang_output_section_statement_type): Add dup_output.
      	* ldlang.c (lang_output_section_statement_lookup): Set dup_output.
      	(init_os): Test dup_output rather than constraint.
      	* testsuite/ld-scripts/pr27100.d,
      	* testsuite/ld-scripts/pr27100.s,
      	* testsuite/ld-scripts/pr27100.t: New test.
      	* testsuite/ld-scripts/data.exp: Run it.  Don't exclude aout here.
      	* testsuite/ld-scripts/data.d: Do so here instead.
      	* testsuite/ld-scripts/fill.d: Likewise.
      	* testsuite/ld-scripts/fill16.d: Likewise.
      de34d428
    • GDB Administrator's avatar
      Automatic date update in version.in · 62fa7b3c
      GDB Administrator authored
      62fa7b3c
    • Alex Bennée's avatar
      Clarify language for the '?' packet · f37059ea
      Alex Bennée authored
      
      
      Both QEMU and kgdb make the assumption that the '?' packet is only
      sent during the initial setup of a gdbstub connection. Both use that
      knowledge to reset breakpoints and ensure the gdbstub is in a
      clean-state on a resumed connection. This can cause confusion for
      others implementing clients that speak to gdbstub devices. To avoid
      that make the language clearer that this is a start-up query packet
      that you only expect to see once.
      
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      
      gdb/doc/ChangeLog:
      
      	* gdb.texinfo (Packets): Clarify language for ? packet.
      
      Change-Id: Iae25d3110fe28b8d2467704962a6889e55224ca5
      f37059ea
    • H.J. Lu's avatar
      x86-64: Add Intel LAM property support · 279d901e
      H.J. Lu authored
      Add Intel Linear Address Masking (LAM) property support.  LAM modifies
      the checking that is applied to 64-bit linear addresses, allowing
      software to use of the untranslated address bits for metadata.
      
      bfd/
      
      	* elf-linker-x86.h (elf_x86_cet_report): Renamed to ...
      	(elf_x86_prop_report): This.
      	(elf_linker_x86_params): Add lam_u48, lam_u57, lam_u48_report
      	and lam_u57_report.
      	* elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Support
      	GNU_PROPERTY_X86_FEATURE_1_LAM_U48 and
      	GNU_PROPERTY_X86_FEATURE_1_LAM_U57.
      	(_bfd_x86_elf_link_fixup_gnu_properties): Keep LAM features only
      	for 64-bit output.
      
      binutils/
      
      	* NEWS: Mention LAM_U48 and LAM_U57 support.
      	* elfedit.c (elf_x86_feature): Support lam_u48 and lam_u57.
      	(usage): Add lam_u48 and lam_u57.
      	* readelf.c (decode_x86_feature_1): Support LAM_U48 and LAM_U57.
      	* doc/binutils.texi: Update elfedit with lam_u48 and lam_u57
      	support.
      	* testsuite/binutils-all/x86-64/lam-u48.d: New file.
      	* testsuite/binutils-all/x86-64/lam-u48.s: Likewise.
      	* testsuite/binutils-all/x86-64/lam-u57.d: Likewise.
      	* testsuite/binutils-all/x86-64/lam-u57.s: Likewise.
      
      include/
      
      	* elf/common.h (GNU_PROPERTY_X86_FEATURE_1_LAM_U48): New.
      	(GNU_PROPERTY_X86_FEATURE_1_LAM_U57): Likewise.
      
      ld/
      
      	* NEWS: Mention LAM_U48 and LAM_U57 support.
      	* ld.texi: Document LAM_U48 and LAM_U57 support.
      	* emulparams/cet.sh: Updated.
      	* emulparams/elf_x86_64.sh: Source x86-64-lam.sh.
      	* emulparams/x86-64-lam.sh: New file.
      	* testsuite/ld-x86-64/property-x86-lam-u48-1a.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u48-1b.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u48-2.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u48-3a.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u48-3b.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u48-4.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u48-5.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u48.s: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u57-1a.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u57-1b.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u57-2.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u57-3a.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u57-3b.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u57-4.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u57-5.d: Likewise.
      	* testsuite/ld-x86-64/property-x86-lam-u57.s: Likewise.
      	* testsuite/ld-x86-64/x86-64.exp: Run LAM tests.
      279d901e
    • Andrew Burgess's avatar
      gdb: remove some uses of LA_PRINT_STRING · 5cc0917c
      Andrew Burgess authored
      This commit removes some, but not all, uses of LA_PRINT_STRING.  In
      this commit I've removed those uses where there is an obvious language
      object on which I can instead call the printstr method.
      
      In the remaining 3 uses it is harder to know if the correct thing is
      to call printstr on the current language, or on a specific language.
      Currently obviously, we always call on the current language (as that's
      what LA_PRINT_STRING does), and clearly this behaviour is good enough
      right now, but is it "right"?  I've left them for now and will give
      them more thought in the future.
      
      gdb/ChangeLog:
      
      	* expprint.c (print_subexp_standard): Replace uses of
      	LA_PRINT_STRING.
      	* f-valprint.c (f_language::value_print_inner): Likewise.
      	* guile/scm-pretty-print.c (ppscm_print_string_repr): Likewise.
      	* p-valprint.c (pascal_language::value_print_inner): Likewise.
      	* python/py-prettyprint.c (print_string_repr): Likewise.
      5cc0917c
    • Andrew Burgess's avatar
      gdb: move rust_language into rust-lang.h · 1c485265
      Andrew Burgess authored
      Move the rust_language class declaration into the rust-lang.h header
      file.  This allows for the function implementations called directly in
      rust-lang.c and rust-exp.y without the need for trampoline functions.
      
      There should be no user visible changes after this commit.
      
      gdb/ChangeLog:
      
      	* rust-exp.y (rust_parse): Rename to...
      	(rust_language::parser): ...this.
      	* rust-lang.c (-rust_printstr): Rename to...
      	(rust_language::printstr): ...this.
      	(rust_value_print_inner): Delete declaration.
      	(val_print_struct): Rename to...
      	(rust_language::val_print_struct): ...this.  Update calls to
      	member functions.
      	(rust_print_enum): Rename to...
      	(rust_language::print_enum): ...this.  Update calls to member
      	functions.
      	(rust_value_print_inner): Rename to...
      	(rust_language::value_print_inner): ...this.  Update calls to
      	member functions.
      	(exp_descriptor_rust): Rename to...
      	(rust_language::exp_descriptor_tab): ...this.
      	(class rust_language): Move to rust-lang.h.
      	(rust_language::language_arch_info): Implementation moved to here
      	from class declaration.
      	(rust_language::print_type): Likewise.
      	(rust_language::emitchar): Likewise.
      	(rust_language::is_string_type_p): Likewise.
      	* rust-lang.h: Add 'demangle.h', 'language.h', 'value.h', and
      	'c-lang.h' includes.
      	(rust_parse): Delete declaration.
      	(class rust_language): Class declaration moved here from
      	rust-lang.c.
      1c485265
    • Andrew Burgess's avatar
      gdb/objc: fix bug in objc_language::opcode_print_table · ed5797ee
      Andrew Burgess authored
      In this commit:
      
        commit b7c6e27d
        Date:   Tue Aug 4 17:07:59 2020 +0100
      
            gdb: Convert language_data::la_op_print_tab to a method
      
      A bug was introduced, the objc language now returns the wrong op_print
      table.  Fixed in this commit.
      
      gdb/ChangeLog:
      
      	* objc-lang.c (objc_language::opcode_print_table): Return
      	objc_op_print_tab.
      ed5797ee
    • Andrew Burgess's avatar
      gdb: move pascal_language into p-lang.h · 46157d77
      Andrew Burgess authored
      Move the pascal_language class declaration into the p-lang.h header
      file.  This allows for the function implementations to be spread over
      the different p-*.c files without the need for global trampoline
      functions.
      
      As a consequence of this change many of the Pascal value and type
      printing helper functions have become member functions within the
      pascal_language class.
      
      There should be no user visible changes after this commit.
      
      gdb/ChangeLog:
      
      	* p-exp.y (exp): Update call to pascal_is_string_type.
      	(pascal_parse): Rename to...
      	(pascal_language::parser): ...this.
      	* p-lang.c (is_pascal_string_type): Rename to...
      	(pascal_is_string_type): ...this.
      	(pascal_one_char): Rename to...
      	(pascal_language::print_one_char): ...this.
      	(pascal_printchar): Rename to...
      	(pascal_language::printchar): ...this.  Update call to
      	print_one_char member function.
      	(pascal_op_print_tab): Rename to...
      	(pascal_language::op_print_tab): ...this.
      	(class pascal_language): Moved to p-lang.h.
      	(pascal_language::language_arch_info): Function implementation
      	moved out of class declaration.
      	(pascal_language::printstr): Likewise.
      	* p-lang.h (pascal_parse): Delete declaration.
      	(pascal_is_string_type): Declare.
      	(pascal_print_type): Delete declaration.
      	(pascal_print_typedef): Delete declaration.
      	(pascal_value_print_inner): Delete declaration.
      	(pascal_value_print): Delete declaration.
      	(pascal_type_print_method_args): Delete declaration.
      	(is_pascal_string_type): Delete declaration.
      	(pascal_printchar): Delete declaration.
      	(pascal_builtin_types): Delete declaration.
      	(pascal_type_print_base): Delete declaration.
      	(pascal_type_print_varspec_prefix): Delete declaration.
      	(class pascal_language): Moved here from p-lang.c.
      	* p-typeprint.c (pascal_type_print_varspec_suffix): Delete
      	declaration.
      	(pascal_type_print_derivation_info): Delete declaration.
      	(pascal_print_type): Rename to...
      	(pascal_language::print_type): ...this.  Update calls to member
      	functions.
      	(pascal_print_typedef): Rename to...
      	(pascal_language::print_typedef): ...this.  Update calls to member
      	functions.
      	(pascal_type_print_derivation_info): Rename to...
      	(pascal_language::type_print_derivation_info): ...this.
      	(pascal_type_print_method_args): Rename to...
      	(pascal_language::type_print_method_args): ...this.
      	(pascal_type_print_varspec_prefix): Rename to...
      	(pascal_language::type_print_varspec_prefix): ...this.  Update
      	calls to member functions.
      	(pascal_print_func_args): Rename to...
      	(pascal_language::print_func_args): ...this.  Update calls to
      	member functions.
      	(pascal_type_print_func_varspec_suffix): Rename to...
      	(pascal_language::type_print_func_varspec_suffix): ...this.
      	Update calls to member functions.
      	(pascal_type_print_varspec_suffix): Rename to...
      	(pascal_language::type_print_varspec_suffix): ...this.  Update
      	calls to member functions.
      	(pascal_type_print_base): Rename to...
      	(pascal_language::type_print_base): ...this.  Update calls to
      	member functions.
      	* p-valprint.c (pascal_value_print_inner): Rename to...
      	(pascal_language::value_print_inner): ...this.  Update calls to
      	member functions.
      	(pascal_value_print): Rename to...
      	(pascal_language::value_print): ...this.  Update calls to member
      	functions.
      46157d77
    • Andrew Burgess's avatar
      gdb: move go_language class declaration into header file · 82fc57fd
      Andrew Burgess authored
      Move the go_language class into go-lang.h, this allows us to have
      member functions implemented directly in the different go-*.c files
      instead of having to trampoline out to global functions.
      
      There should be no user visible changes after this commit.
      
      gdb/ChangeLog:
      
      	* go-exp.y (go_parse): Rename to...
      	(go_language::parser): ...this.
      	* go-lang.c (go_demangle): Rename to...
      	(go_language::demangle_symbol): ...this.
      	(go_language::expression_ops): Implementation moved here out of
      	class declaration.
      	(go_op_print_tab): Rename to...
      	(go_language::op_print_tab): ...this, update comment.
      	(class go_language): Declaration moved to go-lang.h.
      	(go_language::language_arch_info): Implementation moved here out
      	of class declaration.
      	* go-lang.h (go_parse): Delete declaration.
      	(go_demangle): Delete declaration.
      	(go_print_type): Delete declaration.
      	(go_value_print_inner): Delete declaration.
      	(class go_language): Declaration moved here from go-lang.c.
      	* go-typeprint.c (go_print_type): Rename to...
      	(go_language::print_type): ...this.
      	* go-valprint.c (go_value_print_inner): Rename to...
      	(go_language::value_print_inner): ...this.
      	* symtab.c (demangle_for_lookup): Call demangle_symbol method on
      	the go_language object.
      82fc57fd