)]}'
{
  "commit": "1c6fbf42e5bd3045a41ad32c5efbc2ab8ca5e941",
  "tree": "de24937c9c0144720c3fcd4414b0028f0c0bce7b",
  "parents": [
    "cb2cd8cba82a0a5480a147d95b16098ad74d33c6"
  ],
  "author": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Fri Apr 29 23:21:18 2022 +0100"
  },
  "committer": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Tue May 10 14:16:21 2022 +0100"
  },
  "message": "Always pass an explicit language down to c_type_print\n\nThe next patch will want to do language-\u003eprint_type(type, ...), to\nprint a type in a given language, avoiding a dependency on the current\nlanguage.  That doesn\u0027t work correctly currently, however, because\nmost language implementations of language_defn::print_type call\nc_print_type without passing down the language.  There are two\noverloads of c_print_type, one that takes a language, and one that\ndoes not.  The one that does not uses the current language, defeating\nthe point of calling language-\u003eprint_type()...\n\nThis commit removes the c_print_type overload that does not take a\nlanguage, and adjusts the codebase throughout to always pass down a\nlanguage.  In most places, there\u0027s already an enum language handy.\nlanguage_defn::print_type implementations naturally pass down\nthis-\u003ela_language.  In a couple spots, like in ada-typeprint.c and\nrust-lang.c there\u0027s no enum language handy, but the code is written\nfor a specific language, so we just hardcode the language.\n\nIn gnuv3_print_method_ptr, I wasn\u0027t sure whether we could hardcode C++\nhere, and we don\u0027t have an enum language handy, so I made it use the\ncurrent language, just like today.  Can always be improved later.\n\nChange-Id: Ib54fab4cf0fd307bfd55bf1dd5056830096a653b\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0eb95cb0a73bde840ff256850e24c01b95d930b1",
      "old_mode": 33188,
      "old_path": "gdb/ada-typeprint.c",
      "new_id": "05ffb8b833137e29528bdecac640bf75f5665bde",
      "new_mode": 33188,
      "new_path": "gdb/ada-typeprint.c"
    },
    {
      "type": "modify",
      "old_id": "517ab42b2297f9395ff95136edce163606474ed4",
      "old_mode": 33188,
      "old_path": "gdb/c-exp.y",
      "new_id": "72f8dd32d93ae61b0588b4c66b625196b9c716f9",
      "new_mode": 33188,
      "new_path": "gdb/c-exp.y"
    },
    {
      "type": "modify",
      "old_id": "be9ee073f58ff6f75b732bb8c30d589a8c75e891",
      "old_mode": 33188,
      "old_path": "gdb/c-lang.c",
      "new_id": "768963529544ceb9f40b4254565dbccda9c2c946",
      "new_mode": 33188,
      "new_path": "gdb/c-lang.c"
    },
    {
      "type": "modify",
      "old_id": "46e562df055b9c5edb1c2aee07cb29f020b0f0f4",
      "old_mode": 33188,
      "old_path": "gdb/c-lang.h",
      "new_id": "096eb027fd7516274de4dad0d5f9cac316cfeb96",
      "new_mode": 33188,
      "new_path": "gdb/c-lang.h"
    },
    {
      "type": "modify",
      "old_id": "3425c829e3f7e0e77e76059b50a5329ee21b1214",
      "old_mode": 33188,
      "old_path": "gdb/c-typeprint.c",
      "new_id": "4f45475dc4aba85b9fbccf732a92886253196310",
      "new_mode": 33188,
      "new_path": "gdb/c-typeprint.c"
    },
    {
      "type": "modify",
      "old_id": "ec4a80a3223802ba07daaf1ec57dd3a84c109831",
      "old_mode": 33188,
      "old_path": "gdb/d-lang.c",
      "new_id": "ce6dc058412f43d2b1358ce060aefa2c666c8e47",
      "new_mode": 33188,
      "new_path": "gdb/d-lang.c"
    },
    {
      "type": "modify",
      "old_id": "7aac0ca4f9c206c404b961525de0b3eb92964b72",
      "old_mode": 33188,
      "old_path": "gdb/gnu-v3-abi.c",
      "new_id": "953645e7411fca3e86ebdd6fb5f66cbef764aa78",
      "new_mode": 33188,
      "new_path": "gdb/gnu-v3-abi.c"
    },
    {
      "type": "modify",
      "old_id": "f8f155fbb648681f2de5a117767c20e52bb20176",
      "old_mode": 33188,
      "old_path": "gdb/go-typeprint.c",
      "new_id": "4995ac3918673b8f3d510772a362ff7504922632",
      "new_mode": 33188,
      "new_path": "gdb/go-typeprint.c"
    },
    {
      "type": "modify",
      "old_id": "00c362c5c9c8a370f7b686665701ba2413ba86ba",
      "old_mode": 33188,
      "old_path": "gdb/objc-lang.c",
      "new_id": "37008da529a688ba87533879de0e8bbe2c34039b",
      "new_mode": 33188,
      "new_path": "gdb/objc-lang.c"
    },
    {
      "type": "modify",
      "old_id": "5145cd4062efcab463ab00021e53693816744cd5",
      "old_mode": 33188,
      "old_path": "gdb/opencl-lang.c",
      "new_id": "1034d1c91fe5c729d8a10eac7fce2b55cb3296bf",
      "new_mode": 33188,
      "new_path": "gdb/opencl-lang.c"
    },
    {
      "type": "modify",
      "old_id": "bf8dba99ecd6bb774bdf1d283fbb17df7a535917",
      "old_mode": 33188,
      "old_path": "gdb/rust-lang.c",
      "new_id": "746f565947be8e74dcbc1529d38e127129c15f1c",
      "new_mode": 33188,
      "new_path": "gdb/rust-lang.c"
    }
  ]
}
