aboutsummaryrefslogtreecommitdiff
path: root/opcodes/lm32-asm.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-04-18 19:32:01 +0800
committerYao Qi <yao@codesourcery.com>2014-04-22 09:21:55 +0800
commit48b6e87ef297136a6409c2c993c4626f28bbb4d1 (patch)
treea54fda3ab474325c513a7981d0a8f8ec4063990a /opcodes/lm32-asm.c
parentf159927f4d15d820a6eb615e33d68780db035c8d (diff)
downloadgdb-48b6e87ef297136a6409c2c993c4626f28bbb4d1.zip
gdb-48b6e87ef297136a6409c2c993c4626f28bbb4d1.tar.gz
gdb-48b6e87ef297136a6409c2c993c4626f28bbb4d1.tar.bz2
Unify ctf_fetch_registers and tfile_fetch_registers
Functions ctf_fetch_registers and tfile_fetch_registers have some duplicated code about guessing the PC in regcache. Sometimes, we may change one function and forget to update the other one, like this https://www.sourceware.org/ml/gdb-patches/2014-01/msg00292.html This patch is to move the duplicated code into a new function tracefile_fetch_registers, and let both ctf_fetch_registers and tfile_fetch_registers call it. gdb: 2014-04-22 Yao Qi <yao@codesourcery.com> * tracefile-tfile.c (tfile_fetch_registers): Move the bottom to ... * tracefile.c (tracefile_fetch_registers): ... it. New function. * tracefile.h (tracefile_fetch_registers): Declare. * ctf.c (ctf_fetch_registers): Remove the bottom. Call tracefile_fetch_registers.
Diffstat (limited to 'opcodes/lm32-asm.c')
0 files changed, 0 insertions, 0 deletions