diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-01-15 12:47:44 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-01-15 12:47:44 -0500 |
commit | 8dc3273e0c50b607ee97873ae745cbc0d3ec6d7f (patch) | |
tree | 601e2d543fe78dd3527f460a4ca7c0248c9c795b /etc | |
parent | 0d1cc75df1c9a356dfa47932e9ec52fca7d8f5ab (diff) | |
download | fsf-binutils-gdb-8dc3273e0c50b607ee97873ae745cbc0d3ec6d7f.zip fsf-binutils-gdb-8dc3273e0c50b607ee97873ae745cbc0d3ec6d7f.tar.gz fsf-binutils-gdb-8dc3273e0c50b607ee97873ae745cbc0d3ec6d7f.tar.bz2 |
Use get_thread_regcache instead of get_current_regcache in post_create_inferior
In post_create_inferior, we get the current thread using the
inferior_thread function and store it in `thr`. We then call
get_current_regcache immediately after, which does:
return get_thread_regcache (inferior_thread ());
This patch makes post_create_inferior use get_thread_regcache, passing
`thr`, saving an unnecessary inferior_thread call.
gdb/ChangeLog:
* infcmd.c (post_create_inferior): Use get_thread_regcache
instead of get_current_regcache.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions