)]}'
{
  "commit": "76060b138dbc0faa70a5da2af8519a0ae469caa2",
  "tree": "d0bd09c780b8ee8030c7cd13879b2e4df47fff77",
  "parents": [
    "73432d71de5c60b9ad3c6895ac80cd17d74be52c"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Thu Aug 14 14:53:19 2025 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Thu Aug 14 14:53:19 2025 +0200"
  },
  "message": "[gdb/testsuite] Stop on main in gdb.gdb/{python-helper,selftest}.exp\n\nWith a gdb build with gcc 15.1.1 and \"-O2 -flto\u003dauto -g\", I run into:\n...\nUNTESTED: gdb.gdb/selftest.exp: \\\n  Cannot set breakpoint at captured_main, skipping testcase.\nUNTESTED: gdb.gdb/python-helper.exp: \\\n  Cannot set breakpoint at captured_main, skipping testcase.\n...\n\nI don\u0027t know why we\u0027re trying to stop in captured_main.\n\nStopping in main also works, and main is more likely to be present in an lto\nbuild.\n\nFix this by using main instead.\n\nThis requires us to update the expected file name from main.c to gdb.c in\nselftest_setup.\n\nAfter doing so, we get:\n...\nXFAIL: gdb.gdb/selftest.exp: \\\n  run until breakpoint at main (line numbers scrambled?)\nXFAIL: gdb.gdb/python-helper.exp: \\\nrun until breakpoint at main (line numbers scrambled?)\n...\nbecause main is reported to be in run-on-main-thread.c instead of gdb.c:\n.\nBreakpoint 1, main (...) at gdb/run-on-main-thread.c:120^M\n...\n\nThis is due to picking the last line entry for pc \u003d\u003d 0x455e40 that has\nis_stmt \u003d\u003d true:\n...\nFile name                      Line number    Starting address    View    Stmt\n\ngdb/gdb.c:\ngdb.c                                   25            0x455e40               x\ngdb.c                                   30            0x455e40       1       x\n\ngdb/run-on-main-thread.c:\nrun-on-main-thread.c                   116            0x455e40       2       x\nrun-on-main-thread.c                   120            0x455e40       3       x\n\ngdb/gdb.c:\ngdb.c                                   25            0x455e40       4\n\n/usr/include/c++/15/bits/std_thread.h:\nstd_thread.h                           366            0x455e4b\n...\n\nWhile we\u0027re at it, update the corresponding gdb_test_multiple in\nselftest_setup using multi_line and -wrap.\n\nTested on x86_64-linux.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8126740c30175cb88db19ab70c76fa012b0f9ed2",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.gdb/python-helper.exp",
      "new_id": "7f91278c5933aa1ea208ecbc1dea4b77fdb191bb",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.gdb/python-helper.exp"
    },
    {
      "type": "modify",
      "old_id": "1cf92657e50ced747f15259273c313150fde9145",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.gdb/selftest.exp",
      "new_id": "3948fce44a24d4884ad2c0aaac2525447b281caf",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.gdb/selftest.exp"
    },
    {
      "type": "modify",
      "old_id": "e037664427c1ceb5c25ecd5513785e7d630701c4",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/lib/selftest-support.exp",
      "new_id": "97be023b04e7acf7b2efc9f9835885ea0cf01021",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/lib/selftest-support.exp"
    }
  ]
}
