This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
"which function is called when updating a register?"
- From: "Xinan Tang" <xinan at tidalnetworks dot net>
- To: <gdb at sources dot redhat dot com>
- Date: Fri, 16 Jul 2004 14:40:57 -0700
- Subject: "which function is called when updating a register?"
Hi
I set breakpoints on both:
-- gdbsim_fetch_register and
-- gdbsim_store_register
when single stepping the instruction execution, I noticed that
gdbsim_fetech_register was called but gdbsim_store_register.
Which function is actually called to update a register content within gdb
using a built-in simulator?
Thanks
--Xinan
__________________________________________________
"Xinan Tang" <xinan@tidalnetworks.net> writes:
>
> > target sim
Then the code in gdb/remote-sim.c would be a good thing to look at.
In particular, are the right values coming through
gdbsim_fetch_register and gdbsim_store_register?