This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: reading register information from corefile
On Tue, Feb 28, 2006 at 09:15:57PM +0530, Harsha HS wrote:
> I am trying to build a corss gdb for mips r3k architecture. When i try
> to load core file i get the message that "GDB can't read core files on
> this machine", as the function find_target_core returns NULL.
>
> find_target_core scans the struct target_ops for the core_stratum and
> returns the appropriate target structure.
>
> Can u please help me on how to initialize the struct target_ops with
> the relevent values to support the loading of the core file specific
> to mips target.
It sounds like you didn't link in core file support. Add it to
the list of target-specific files for your target - look at some of the
Linux or BSD targets for an example.
--
Daniel Jacobowitz
CodeSourcery