This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: problem with register display
- To: gdb at sourceware dot cygnus dot com
- Subject: Re: problem with register display
- From: fche at cygnus dot com (Frank Ch. Eigler)
- Date: 08 Mar 2000 11:41:04 -0500
- cc: johan dot rydberg at netinsight dot se
- Newsgroups: cygnus.gdb
- Organization: Cygnus Solutions / Red Hat (Toronto)
- References: <38C6691D.C3F05223@netinsight.se>
Johan Rydberg <johan.rydberg@netinsight.se> writes:
> I'm developing a "gdb-simulator" for a CPU, and it seems to
> work pretty good.
Good.
> [...] When I try to display the registers it says everyone except
> the link register is unavailable. Why this? [...]
It's hard to say. It would help if you posted gdb session transcripts
demonstrating the problem.
Anyway, a few things to look out for:
- check that both sim_{fetch,store}_register return the
number of bytes they transferred
- check that the sim and gdb register numbers match for your target
> And, how do I from gdb call the `sim_infoŽ function? [...]
I see no gdb command that hooks to this function. But, one is not
hard to add. Look up the sim option processing functions. They work
from both within gdb (using the "sim" command prefix) and the sim
command line (as long --options).
- FChE