)]}'
{
  "commit": "d2c8f4be20a4213ea64b0ede63c2fcde69c637a1",
  "tree": "23c2e5528cff38a66354187afc4c38e757b594dc",
  "parents": [
    "e6da5aefd46143872f59cb0d88c36a6fd55b2bf3"
  ],
  "author": {
    "name": "Pedro Alves",
    "email": "palves@redhat.com",
    "time": "Wed Jan 14 12:38:47 2015 +0000"
  },
  "committer": {
    "name": "Pedro Alves",
    "email": "palves@redhat.com",
    "time": "Wed Jan 14 12:45:32 2015 +0000"
  },
  "message": "PR17525 - breakpoint commands not executed when program run from -x script\n\nExecuting a gdb script that runs the inferior (from the command line\nwith -x), and has it hit breakpoints with breakpoint commands that\nthemselves run the target, is currently broken on async targets\n(Linux, remote).\n\nWhile we\u0027re executing a command list or a script, we force the\ninterpreter to be sync, which results in some functions nesting an\nevent loop and waiting for the target to stop, instead of returning\nimmediately and having the top level event loop handle the stop.\n\nThe issue with this bug is simply that bpstat_do_actions misses\nchecking whether the interpreter is sync.  When we get here, in the\ncase of executing a script (or, when the interpreter is sync), the\nprogram has already advanced to the next breakpoint, through\nmaybe_wait_sync_command_done.  We need to process its breakpoints\nimmediately, just like with a sync target.\n\nTested on x86_64 Fedora 20.\n\ngdb/\n2015-01-14  Pedro Alves  \u003cpalves@redhat.com\u003e\n\n\tPR gdb/17525\n\t* breakpoint.c: Include \"interps.h\".\n\t(bpstat_do_actions_1): Also check whether the interpreter is\n\tasync.\n\ngdb/testsuite/\n2015-01-14  Pedro Alves  \u003cpalves@redhat.com\u003e\n\t    Joel Brobecker  \u003cbrobecker@adacore.com\u003e\n\n\tPR gdb/17525\n\t* gdb.base/bp-cmds-execution-x-script.c: New file.\n\t* gdb.base/bp-cmds-execution-x-script.exp: New file.\n\t* gdb.base/bp-cmds-execution-x-script.gdb: New file.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "640775c06070a9f879165af14f831c446c1e4666",
      "old_mode": 33188,
      "old_path": "gdb/ChangeLog",
      "new_id": "7b173a2d4b4d695a622d83d098ad0b29f19db450",
      "new_mode": 33188,
      "new_path": "gdb/ChangeLog"
    },
    {
      "type": "modify",
      "old_id": "e6cda4e1e5621a7d06e8f39148b3f32b59077b7e",
      "old_mode": 33188,
      "old_path": "gdb/breakpoint.c",
      "new_id": "1dbda285c740fda2e203990a463ddfba5542dd51",
      "new_mode": 33188,
      "new_path": "gdb/breakpoint.c"
    },
    {
      "type": "modify",
      "old_id": "4c9f3b76d292e1c9bd5f67208d19f4edcd157546",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/ChangeLog",
      "new_id": "014a262f42736cd602a792a299185cc21c993590",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/ChangeLog"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f7101b6d65ab941674dead0b263df1e0d9f70317",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/bp-cmds-execution-x-script.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e75a4fdb709032397079316b86ffd3c1c5429167",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6d5b4e475d67fa1123424c2952f5d003bb99aace",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/bp-cmds-execution-x-script.gdb"
    }
  ]
}
