* Cross GDB and core files
@ 2001-09-05 21:35 Elan Feingold
2001-09-05 21:54 ` Cal Erickson
2001-09-05 22:16 ` Peter Barada
0 siblings, 2 replies; 3+ messages in thread
From: Elan Feingold @ 2001-09-05 21:35 UTC (permalink / raw)
To: Linuxppc-Embedded@Lists. Linuxppc. Org
Hi,
I'm trying to get gdb compiled with host of 386-linux and target of
ppc-linux, mostly for debugging core files. The ppc_8xx-gdb that came with
hardhat doesn't work, when I run it on a core file I get:
...
warning: couldn't find general purpose registers in core file.
warning: wrong size fpregset struct in core file.
...
And if I try to build gdb from scratch using
"./configure --target=ppc-linux" I get a cross gdb that has no clue how to
read PPC ELF core files.
Help.
-elan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cross GDB and core files
2001-09-05 21:35 Cross GDB and core files Elan Feingold
@ 2001-09-05 21:54 ` Cal Erickson
2001-09-05 22:16 ` Peter Barada
1 sibling, 0 replies; 3+ messages in thread
From: Cal Erickson @ 2001-09-05 21:54 UTC (permalink / raw)
To: Elan Feingold; +Cc: Linuxppc-Embedded@Lists. Linuxppc. Org
Elan,
This was a problem with the 4.18 GDB. It was fixed in the HHL releases.
It is fixed in GDB 5.0x. from MontaVista.
Cal Erickson
Elan Feingold wrote:
> Hi,
>
> I'm trying to get gdb compiled with host of 386-linux and target of
> ppc-linux, mostly for debugging core files. The ppc_8xx-gdb that came with
> hardhat doesn't work, when I run it on a core file I get:
>
> ...
> warning: couldn't find general purpose registers in core file.
> warning: wrong size fpregset struct in core file.
> ...
>
> And if I try to build gdb from scratch using
> "./configure --target=ppc-linux" I get a cross gdb that has no clue how to
> read PPC ELF core files.
>
> Help.
>
> -elan
>
--
===========================================================================
Cal Erickson MontaVista Software Inc.
Linux Consultant 1237 E. Arques Ave.
Phone (408) 328-0304 Sunnyvale CA 94085
Fax (408) 328-9204 web http://www.mvista.com
===========================================================================
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cross GDB and core files
2001-09-05 21:35 Cross GDB and core files Elan Feingold
2001-09-05 21:54 ` Cal Erickson
@ 2001-09-05 22:16 ` Peter Barada
1 sibling, 0 replies; 3+ messages in thread
From: Peter Barada @ 2001-09-05 22:16 UTC (permalink / raw)
To: elan; +Cc: linuxppc-embedded
>I'm trying to get gdb compiled with host of 386-linux and target of
>ppc-linux, mostly for debugging core files. The ppc_8xx-gdb that came with
>hardhat doesn't work, when I run it on a core file I get:
>
>And if I try to build gdb from scratch using
>"./configure --target=ppc-linux" I get a cross gdb that has no clue how to
>read PPC ELF core files.
I've had luck building gdb-5.0 for powerpc-linux and used it to
debug a PPC linux kernel via a serial port, as well as use it (in
conjunction with gdbserver) to debug application code over the
network. I used the following to configure:
../gdb-5.0/configure --target=powerpc-linux
--
Peter Barada Peter.Barada@motorola.com
Wizard 781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-05 22:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-05 21:35 Cross GDB and core files Elan Feingold
2001-09-05 21:54 ` Cal Erickson
2001-09-05 22:16 ` Peter Barada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).