)]}'
{
  "commit": "9cd609f8641849d4bbf25f90d5fde58228aeb866",
  "tree": "d5e2bf089f9d44e971ea9390d5ce8f04bbd94588",
  "parents": [
    "1284c2264cca5c848e2f9622ea53e42c97e4e838"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Oct 13 21:35:49 2021 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Oct 13 21:35:49 2021 +0200"
  },
  "message": "[gdb/exp] Improve \u003cerror reading variable\u003e message\n\nWhen printing a variable x in a subroutine foo:\n...\nsubroutine foo (x)\n  integer(4) :: x (*)\n  x(3) \u003d 1\nend subroutine foo\n...\nwhere x is an array with unknown bounds, we get:\n...\n$ gdb -q -batch outputs/gdb.fortran/array-no-bounds/array-no-bounds \\\n  -ex \"break foo\" \\\n  -ex run \\\n  -ex \"print x\"\nBreakpoint 1 at 0x4005cf: file array-no-bounds.f90, line 18.\n\nBreakpoint 1, foo (x\u003d...) at array-no-bounds.f90:18\n18        x(3) \u003d 1\n$1 \u003d \u003cerror reading variable\u003e\n...\n\nImprove the error message by printing the details of the error, such that we\nhave instead:\n...\n$1 \u003d \u003cerror reading variable: failed to get range bounds\u003e\n...\n\nThis is a change in gdb/valprint.c, and grepping through the sources reveals\nthat this is a common pattern.\n\nTested on x86_64-linux.\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a686232cb0eb09ef88b7c76f8b25002d1a2991f4",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.fortran/array-no-bounds.exp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7b9ca998fffa22e8c1cc4b4f97c06738525a243a",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.fortran/array-no-bounds.f90"
    },
    {
      "type": "modify",
      "old_id": "c6ea0d82e406ae34d17979a98ee60756996c6cd0",
      "old_mode": 33188,
      "old_path": "gdb/valprint.c",
      "new_id": "485b5b9857fd827d1825e5a49a4bbfb3fcd12607",
      "new_mode": 33188,
      "new_path": "gdb/valprint.c"
    }
  ]
}
