)]}'
{
  "commit": "18bd4744611b97e9fca41f97b871eea7bd66bd3e",
  "tree": "cb2b7f4ace04e9f5b4f7773af209e6cac30e4538",
  "parents": [
    "02646f1960a53e50c05218725cbf63098bee5bbe"
  ],
  "author": {
    "name": "Tiezhu Yang",
    "email": "yangtiezhu@loongson.cn",
    "time": "Tue May 10 20:44:04 2022 +0800"
  },
  "committer": {
    "name": "Tiezhu Yang",
    "email": "yangtiezhu@loongson.cn",
    "time": "Thu May 19 21:56:53 2022 +0800"
  },
  "message": "gdb: testsuite: Support displaced stepping on LoongArch\n\nWhen execute the following command on LoongArch:\n\n  make check-gdb TESTS\u003d\"gdb.base/async-shell.exp\"\n\nwe can see the following message in gdb/testsuite/gdb.sum:\n\n  UNSUPPORTED: gdb.base/async-shell.exp: displaced stepping\n\nmodify support_displaced_stepping to support displaced stepping\non LoongArch.\n\nWith this patch:\n\n  PASS: gdb.base/async-shell.exp: run \u0026\n  PASS: gdb.base/async-shell.exp: shell echo foo\n  PASS: gdb.base/async-shell.exp: interrupt\n  PASS: gdb.base/async-shell.exp: process stopped\n\nI did the following tests that use support_displaced_stepping\nwith this patch on LoongArch, there is no failed testcases.\n\nloongson@linux:~/gdb.git$ grep -r support_displaced_stepping gdb/testsuite/gdb.*\ngdb/testsuite/gdb.arch/disp-step-insn-reloc.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.base/step-over-no-symbols.exp:    if { $displaced !\u003d \"off\" \u0026\u0026 ![support_displaced_stepping] } {\ngdb/testsuite/gdb.base/moribund-step.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.base/async-shell.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.base/inferior-died.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.base/step-over-syscall.exp:        if {$displaced \u003d\u003d \"on\" \u0026\u0026 ![support_displaced_stepping]} {\ngdb/testsuite/gdb.mi/mi-watch-nonstop.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.mi/mi-nonstop.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.mi/mi-nsmoribund.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.mi/mi-nsintrall.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.mi/mi-nsthrexec.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.mi/mi-nonstop-exit.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.multi/watchpoint-multi.exp:if [support_displaced_stepping] {\ngdb/testsuite/gdb.python/py-evthreads.exp:if { ![support_displaced_stepping] } {\ngdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.exp:    if { $displaced !\u003d \"off\" \u0026\u0026 ![support_displaced_stepping] } {\ngdb/testsuite/gdb.threads/interrupt-while-step-over.exp:    if { ${displaced-stepping} !\u003d \"off\" \u0026\u0026 ![support_displaced_stepping] } {\ngdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp:    if { $displaced !\u003d \"off\" \u0026\u0026 ![support_displaced_stepping] } {\n\nSigned-off-by: Tiezhu Yang \u003cyangtiezhu@loongson.cn\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "97841ca19a1e9a632e665f92a2b4b35c6c8c531f",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/lib/gdb.exp",
      "new_id": "720418beac294376671032e6085f2936516ff70c",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/lib/gdb.exp"
    }
  ]
}
