)]}'
{
  "commit": "890f0ceb616bf64caee9d09c7b14159f19fd7111",
  "tree": "1c31ade60beb57f90326cef7978fad25c1aec893",
  "parents": [
    "b0170acd5a9e834e2b37ff151fa817e9a7a1412a"
  ],
  "author": {
    "name": "Guinevere Larsen",
    "email": "guinevere@redhat.com",
    "time": "Fri Sep 06 14:47:44 2024 -0300"
  },
  "committer": {
    "name": "Guinevere Larsen",
    "email": "guinevere@redhat.com",
    "time": "Fri Sep 20 17:01:35 2024 -0300"
  },
  "message": "gdb: Make dbxread rely less on global variables\n\nThe file dbxread.c, which is responsible for reading stabs information\nfor multiple file formats, relies heavily on setting and using global\nvariables over the course of reading symbols.\n\nFuture patches aim to make stabs reading more file format independent,\nand this patch starts that change by introducing a stabs_context struct,\nthat will hold all the relevant variables. This context struct is saved\non the registry key inside the objfile being read. Some of those global\nvariables have been deemed irrelevant:\n* dbxread_objfile - Since we\u0027re saving in an objfile, this is redundant\n* symfile_bfd - It is trivial to get the bfd pointer from the objfile,\n  so also unnecessary\n* string_table_offset - was never initialized, just used to set a value.\n  That usage was substituted by a hardcoded 0\n* next_file_string_table_offset - was only used by read_dbx_symtab, so\n  it was turned into a local variable there.\n\nAs I was moving variables, I also couldn\u0027t think of a good reason for\nthe bincl_list to be a pointer, so it was changed to just be an\nstd::vector.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "31eb51faa73e8d048bf295c40f2fc40ea9bb264d",
      "old_mode": 33188,
      "old_path": "gdb/dbxread.c",
      "new_id": "c8a33040208eaa5c99c7634efd0762d9e215080b",
      "new_mode": 33188,
      "new_path": "gdb/dbxread.c"
    },
    {
      "type": "modify",
      "old_id": "3786ad6881debd2d779a998258d536215a0af186",
      "old_mode": 33188,
      "old_path": "gdb/gdb-stabs.h",
      "new_id": "4bf8da5cf66400ee4476241a600350aad5b7c7d4",
      "new_mode": 33188,
      "new_path": "gdb/gdb-stabs.h"
    }
  ]
}
