)]}'
{
  "commit": "cded17bfca35566fa4d36e9ec06fa071bd7dab17",
  "tree": "0a401cd92f4e709a7ee54f6b5d6e6806367299ce",
  "parents": [
    "6647f05df023b63bbe056e9167e9e234172fa2ca"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Wed Feb 01 17:09:47 2023 +0000"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Wed Feb 01 17:32:16 2023 +0000"
  },
  "message": "gdb/testsuite: fix fetch_src_and_symbols.exp with native-gdbserver board\n\nI noticed that the gdb.debuginfod/fetch_src_and_symbols.exp script\ndoesn\u0027t work with the native-gdbserver board, I see this error:\n\n  ERROR: tcl error sourcing /tmp/build/gdb/testsuite/../../../src/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp.\n  ERROR: gdbserver does not support run without extended-remote\n      while executing\n  \"error \"gdbserver does not support $command without extended-remote\"\"\n      (procedure \"gdb_test_multiple\" line 51)\n      invoked from within\n\nThis was introduced with this commit:\n\n  commit 7dd38e31d67c2548b52bea313ab18e40824c05da\n  Date:   Fri Jan 6 18:45:27 2023 -0500\n\n      gdb/linespec.c: Fix missing source file during breakpoint re-set\n\nThe problem is that the above commit introduces a direct use of the\n\"run\" command, which doesn\u0027t work with \u0027target remote\u0027 targets, as\nexercised by the native-gdbserver board.\n\nTo avoid this, in this commit I switch to using runto_main.  However,\ncalling runto_main will, by default, delete all the currently set\nbreakpoints.  As the point of the above commit was to check that a\nbreakpoint set before stating an inferior would be correctly re-set,\nwe need to avoid this breakpoint deleting behaviour.\n\nTo do this I make use of with_override, and override the\ndelete_breakpoints proc with a dummy proc which does nothing.\n\nBy reverting the GDB changes in commit 7dd38e31d67c I have confirmed\nthat even after my changes in this commit, the test still fails.  But\nwith the fixes in commit 7dd38e31d67c, this test now passed using the\nunix, native-gdbserver, and native-extended-gdbserver boards.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c9cd8a30a1ca78c853bf48fea3cbcaef2873b1eb",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp",
      "new_id": "8158c5c3cc69330995f46d50a4bb3efb9a879bdf",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp"
    }
  ]
}
