]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
gdb/infrun: move a 'regcache_read_pc' call down to first use
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Thu, 14 May 2020 11:59:53 +0000 (13:59 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Thu, 14 May 2020 11:59:53 +0000 (13:59 +0200)
commit7ca9b62a2b63ae04d554053c2a2053d13a9d8c92
tree33a18fcc1bb47295fca866619dc3bad3687af977
parentfc75c28ba1ea7353fb6e1e5904c5703a48504b67
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.
gdb/ChangeLog
gdb/infrun.c