)]}'
{
  "commit": "1137625d46f3840dd7cb7f8519ec9dcba0acd53e",
  "tree": "69dbf95757bdc1902314e31c0e236166596a13ad",
  "parents": [
    "c4fce3ef2927843f74df2b3c10f4347be6ff606f"
  ],
  "author": {
    "name": "Luis Machado",
    "email": "luis.machado@arm.com",
    "time": "Fri Feb 28 09:36:42 2025 +0000"
  },
  "committer": {
    "name": "Luis Machado",
    "email": "luis.machado@arm.com",
    "time": "Wed Apr 02 17:04:14 2025 +0100"
  },
  "message": "Fix gdbserver crashes on SVE/SME-enabled systems\n\nCommit 51e6b8cfd649013ae16a3d00f1451b2531ba6bc9 fixed a\nregression for SVE/SME registers on gdb\u0027s side by using a \u003c\u003d comparison for\nregcache\u0027s raw_compare assertion check. We seem to have failed to do the same\nfor gdbserver\u0027s raw_compare counterpart.\n\nWith the code as it is, I\u0027m seeing a lot of crashes for gdbserver on a machine\nwith SVE enabled. For instance, with the following invocation:\n\nmake check-gdb RUNTESTFLAGS\u003d\"--target_board\u003dnative-gdbserver\" TESTS\u003dgdb.base/break.exp\n\nRunning /work/builds/binutils-gdb/gdb/testsuite/../../../../repos/binutils-gdb/gdb/testsuite/gdb.base/break.exp ...\nFAIL: gdb.base/break.exp: test_break: run until function breakpoint\nFAIL: gdb.base/break.exp: test_break: run until breakpoint set at a line number (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: run until file:function(6) breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: run until file:function(5) breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: run until file:function(4) breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: run until file:function(3) breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: run until file:function(2) breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: run until file:function(1) breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: run until quoted breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: run until file:linenum breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: breakpoint offset +1\nFAIL: gdb.base/break.exp: test_break: step onto breakpoint (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break: setting breakpoint at }\nFAIL: gdb.base/break.exp: test_break: continue to breakpoint at } (the program is no longer running)\nFAIL: gdb.base/break.exp: test_no_break_on_catchpoint: runto: run to main\nFAIL: gdb.base/break.exp: test_break_nonexistent_line: runto: run to main\nFAIL: gdb.base/break.exp: test_break_default: runto: run to main\nFAIL: gdb.base/break.exp: test_break_silent_and_more: runto: run to main\nFAIL: gdb.base/break.exp: test_break_line_convenience_var: runto: run to main\nFAIL: gdb.base/break.exp: test_break_user_call: runto: run to main\nFAIL: gdb.base/break.exp: test_finish_arguments: runto: run to main\nFAIL: gdb.base/break.exp: test_next_with_recursion: kill program\nFAIL: gdb.base/break.exp: test_next_with_recursion: run to factorial(6)\nFAIL: gdb.base/break.exp: test_next_with_recursion: continue to factorial(5) (the program is no longer running)\nFAIL: gdb.base/break.exp: test_next_with_recursion: backtrace from factorial(5)\nFAIL: gdb.base/break.exp: test_next_with_recursion: next to recursive call (the program is no longer running)\nFAIL: gdb.base/break.exp: test_next_with_recursion: next over recursive call (the program is no longer running)\nFAIL: gdb.base/break.exp: test_next_with_recursion: backtrace from factorial(5.1)\nFAIL: gdb.base/break.exp: test_next_with_recursion: continue until exit at recursive next test (the program is no longer running)\nFAIL: gdb.base/break.exp: test_break_optimized_prologue: run until function breakpoint, optimized file\nFAIL: gdb.base/break.exp: test_break_optimized_prologue: run until breakpoint set at small function, optimized file (the program is no longer running)\nFAIL: gdb.base/break.exp: test_rbreak_shlib: rbreak junk\n\nAdjusting the regcache raw_compare assertion check to use \u003c\u003d fixes\nthe problem on aarch64-linux on a SVE-capable system.\n\nThis patch also adds a simple selftest to gdbserver that validates this\nparticular case by simulating a raw_compare operation.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d32775\n\nApproved-By: Simon Marchi \u003csimon.marchi@efficios.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ee0c1b363b058e732a0c7e22d8d31edbc892e05a",
      "old_mode": 33188,
      "old_path": "gdbserver/regcache.cc",
      "new_id": "c08c9ae06c14dbf2a6e938369dd469023faa70a0",
      "new_mode": 33188,
      "new_path": "gdbserver/regcache.cc"
    },
    {
      "type": "modify",
      "old_id": "def01c1ee803088b609b8b05a9c3842c0cf86fa1",
      "old_mode": 33188,
      "old_path": "gdbserver/server.cc",
      "new_id": "3172cd171aa64b40386d2fc882824262813928da",
      "new_mode": 33188,
      "new_path": "gdbserver/server.cc"
    }
  ]
}
