)]}'
{
  "commit": "d264c39e8b3eba663c8f09f228ca44eb36eac778",
  "tree": "c8cbd03e3148b377e66ef27d030067dfbc69fcca",
  "parents": [
    "108e60844c6c517895011f46b74db6b10273be56"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Thu Sep 23 22:42:10 2021 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Thu Sep 23 22:42:10 2021 +0200"
  },
  "message": "[gdb/testsuite] Improve probe detection in gdb.base/break-probes.exp\n\nWhen running test-case gdb.base/break-probes.exp on ubuntu 18.04.5, we have:\n...\n (gdb) run^M\n Starting program: break-probes^M\n Stopped due to shared library event (no libraries added or removed)^M\n (gdb) bt^M\n #0  0x00007ffff7dd6e12 in ?? () from /lib64/ld-linux-x86-64.so.2^M\n #1  0x00007ffff7dedf50 in ?? () from /lib64/ld-linux-x86-64.so.2^M\n #2  0x00007ffff7dd5128 in ?? () from /lib64/ld-linux-x86-64.so.2^M\n #3  0x00007ffff7dd4098 in ?? () from /lib64/ld-linux-x86-64.so.2^M\n #4  0x0000000000000001 in ?? ()^M\n #5  0x00007fffffffdaac in ?? ()^M\n #6  0x0000000000000000 in ?? ()^M\n (gdb) UNSUPPORTED: gdb.base/break-probes.exp: probes not present on this system\n...\n\nUsing the backtrace, the test-case tries to establish that we\u0027re stopped in\ndl_main, which is used as proof that we\u0027re using probes.\n\nHowever, the backtrace only shows an address, because:\n- the dynamic linker contains no minimal symbols and no debug info, and\n- gdb is build without --with-separate-debug-dir so it can\u0027t find the\n  corresponding .debug file, which does contain the mimimal symbols and\n  debug info.\n\nFix this by instead printing the pc and grepping for the value in the\ninfo probes output:\n...\n(gdb) p /x $pc^M\n$1 \u003d 0x7ffff7dd6e12^M\n(gdb) info probes^M\nType Provider Name           Where              Object                      ^M\n  ...\nstap rtld     init_start     0x00007ffff7dd6e12 /lib64/ld-linux-x86-64.so.2 ^M\n  ...\n(gdb)\n...\n\nTested on x86_64-linux.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ac10ac5a3b10b8b8bf8aed5f37b136d8246dffeb",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/break-probes.exp",
      "new_id": "b633ae6f4e9a82fa3a95e0d10bf887cd4a5cb7d2",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/break-probes.exp"
    }
  ]
}
