aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-xmethods.c
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-05-14 13:59:53 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2020-05-14 13:59:53 +0200
commit7ca9b62a2b63ae04d554053c2a2053d13a9d8c92 (patch)
tree33a18fcc1bb47295fca866619dc3bad3687af977 /gdb/python/py-xmethods.c
parentfc75c28ba1ea7353fb6e1e5904c5703a48504b67 (diff)
downloadgdb-7ca9b62a2b63ae04d554053c2a2053d13a9d8c92.zip
gdb-7ca9b62a2b63ae04d554053c2a2053d13a9d8c92.tar.gz
gdb-7ca9b62a2b63ae04d554053c2a2053d13a9d8c92.tar.bz2
gdb/infrun: move a 'regcache_read_pc' call down to first use
In infrun.c's resume_1 function, move the definition of the local variable PC down to its first use. This is useful if the thread we want to resume is already gone with a pending exit event, because we avoid the error we would see otherwise when trying to read the PC. gdb/ChangeLog: 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first use.
Diffstat (limited to 'gdb/python/py-xmethods.c')
0 files changed, 0 insertions, 0 deletions