This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: reading register information from corefile
- From: Daniel Jacobowitz <drow at false dot org>
- To: Harsha HS <harsha dot hs dot 81 at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 27 Feb 2006 11:21:30 -0500
- Subject: Re: reading register information from corefile
- References: <a4e409320602270816h614ae39l3c6faf322c70a0a@mail.gmail.com>
On Mon, Feb 27, 2006 at 09:46:13PM +0530, Harsha HS wrote:
> Hello,
>
> I am trying to build a corss gdb for mips r3k architecture. I am able
> to load any mips executable on gdb and can debug the same
>
> But when i try to load core file i get the message that "GDB can't
> read core files on this machine".
>
> Can u please help me by pointing to the code where I have to add to
> struct target_ops the mips core file format and also the note section
> in the core file to read the register information for a standalone
> embedded application.
No, it's not in target_ops. Take a look at
set_gdbarch_regset_from_core_section instead.
--
Daniel Jacobowitz
CodeSourcery