* support for core files for target powerpc-eabi
@ 2008-02-10 8:48 rahul dev
2008-02-10 17:54 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: rahul dev @ 2008-02-10 8:48 UTC (permalink / raw)
To: gdb
Guys,
I have configured my gdb for target powerpc-eabi. My host machine is
i686-pc-cygwin.
My aim is to analyze the memory dumps collected from an embedded system.
My embedded system doesn't run any OS. So, I collect the memory dumps
from the system. I then convert these memory dumps to an elf core file.
However, when I try to debug this core file using gdb, I get an error
message "GDB can't read core files on this machine.".
I want to know what is reason for this message? Don't we have a support
to analyze the corefile for powerpc-eabi ?
Now, when I compile gdb for target powerpc-linux, and analyze the same
corefile, I don't get any error message. I can see the contents of
all .data and .bss and other memory sections. I can even see various
registers.
However, the dirty things that I have to do is to construct the
NOTE sections (NT_PRSTATUS) in the same format that powerpc-linux target
does. The gdb has hardcoded the size of prstatus not section for
powerpc-linux to be 268 and looks for GPRs at specific offsets in
pr_reg field of prstatus.
My question is if this is a correct way to do the things ?
Is there a better way of achieve this?
Is there a way to analyze my corefile, if I configure the gdb for
powerpc-eabi, Or should I continue to do configure gdb for powerpc-linux
and construct the NOTE section in the same format linux-powerpc does.
I would be highly grateful for any help/suggestions
thanks a lot in advance.
Get the freedom to save as many mails as you wish. To know how, go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: support for core files for target powerpc-eabi
2008-02-10 8:48 support for core files for target powerpc-eabi rahul dev
@ 2008-02-10 17:54 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-02-10 17:54 UTC (permalink / raw)
To: rahul dev; +Cc: gdb
On Sun, Feb 10, 2008 at 02:17:44PM +0530, rahul dev wrote:
> Is there a way to analyze my corefile, if I configure the gdb for
> powerpc-eabi, Or should I continue to do configure gdb for powerpc-linux
> and construct the NOTE section in the same format linux-powerpc does.
Every platform defines its own layout for note sections. There's no
one "powerpc-eabi" operating system to define notes, and there are no
standard notes. So since GDB doesn't know what to do with notes on
this platform, it doesn't support core files.
You can keep using a powerpc-linux GDB, or patch your powerpc-eabi GDB
to work with any note format you choose.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-10 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-10 8:48 support for core files for target powerpc-eabi rahul dev
2008-02-10 17:54 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox