Skip to content
Commit fc07c813 authored by Hui Li's avatar Hui Li Committed by Tiezhu Yang
Browse files

gdb: LoongArch: Update status of the entire regset in regcache



In the current code, when a register is fetched, the entire regset
are fetched via ptrace, but only this register status is updated in
regcache, it needs to fetch the same regset through ptrace again if
another register in this regset is fetched later, this is obviously
unnecessary. It is proper to update the status of the entire regset
in regcache when fetching a register via ptrace.

Signed-off-by: default avatarHui Li <lihui@loongson.cn>
Reviewed-By: default avatarTom Tromey <tom@tromey.com>
Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
parent 6d30ada8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment