)]}'
{
  "commit": "aebb370bae3f511df8afb68a01a79c54e2066650",
  "tree": "8e9e25276a2768eb2352ea514377f08c662c7c4f",
  "parents": [
    "1dc9084f5e95fd9a1f2f0e9baf9c6e52c5a5ee29"
  ],
  "author": {
    "name": "Markus Metzger",
    "email": "markus.t.metzger@intel.com",
    "time": "Mon Mar 28 11:20:10 2022 +0200"
  },
  "committer": {
    "name": "Markus Metzger",
    "email": "markus.t.metzger@intel.com",
    "time": "Tue Oct 18 14:16:11 2022 +0200"
  },
  "message": "gdb, solib-svr4: support namespaces in DSO iteration\n\nWhen looking up names, GDB needs to stay within one linker namespace to\nfind the correct instance in case the same name is provided in more than\none namespace.\n\nModify svr4_iterate_over_objfiles_in_search_order() to stay within the\nnamespace of the current_objfile argument.  If no current_objfile is\nprovided (i.e. it is nullptr), iterate over objfiles in the initial\nnamespace.\n\nFor objfiles that do not have a corresponding so_list to provide the\nnamespace, assume that the objfile was loaded into the initial namespace.\nThis would cover the main executable objfile (which is indeed loaded into\nthe initial namespace) as well as manually added symbol files.\n\nExpected fails:\n\n  - gdb.base/non-lazy-array-index.exp: the expression parser may lookup\n    global symbols, which may result in xfers to read auxv for determining\n    the debug base as part of svr4_iterate_over_objfiles_in_search_order().\n\n  - gdb.server/non-lazy-array-index.exp: symbol lookup may access the\n    target to read AUXV in order to determine the debug base for SVR4\n    linker namespaces.\n\nKnown issues:\n\n  - get_symbol_address() and get_msymbol_address() search objfiles for a\n    \u0027better\u0027 match.  This was introduced by\n\n        4b610737f02 Handle copy relocations\n\n    to handle copy relocations but it now causes a wrong address to be\n    read after symbol lookup actually cound the correct symbol.  This can\n    be seen, for example, with gdb.base/dlmopen.exp when compiled with\n    clang.\n\n  - gnu ifuncs are only looked up in the initial namespace.\n\n  - lookup_minimal_symbol() and lookup_minimal_symbol_text() directly\n    iterate over objfiles and are not aware of linker namespaces.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "295e9b8b69d21f277777c007af3874cb07525fc6",
      "old_mode": 33188,
      "old_path": "gdb/solib-svr4.c",
      "new_id": "6acaf87960bf4076ca14bcaf2631e5946e0ace02",
      "new_mode": 33188,
      "new_path": "gdb/solib-svr4.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c996d76dcb61bd5f0ea32848714c92cf9712d4f8",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/dlmopen-lib-dep.c"
    },
    {
      "type": "modify",
      "old_id": "616bf97b4f50ec62ea5d503f1698ef62505a0378",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/dlmopen-lib.c",
      "new_id": "4645bfde2a6152460c53d4d8aa4d056a2611dbef",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/dlmopen-lib.c"
    },
    {
      "type": "modify",
      "old_id": "8e86d5d5cccff97f38db4b247db39a6466ba2c34",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/dlmopen.exp",
      "new_id": "a80db75f9ac7b58e4a7ef32dca963af054a295de",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/dlmopen.exp"
    },
    {
      "type": "modify",
      "old_id": "6b596eb042ae850927c8ee1109dcb89cd98a1800",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/non-lazy-array-index.exp",
      "new_id": "66686cfdd633ddbedbedb991f1cf761403ddb1e3",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/non-lazy-array-index.exp"
    },
    {
      "type": "modify",
      "old_id": "d01b911d1ede8c3c03cc4783b5a52410b30b3394",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.server/bkpt-other-inferior.exp",
      "new_id": "452c7c93db3c966f0d2a178d1a1725712b2e10ae",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.server/bkpt-other-inferior.exp"
    }
  ]
}
