LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* GDB, xilinx ml50x
@ 2008-10-29 18:32 Stuart Bershtein
  2008-10-29 19:00 ` John Linn
       [not found] ` <689CB232690D8D4E97DA6C76DA098E6C06F7F572@XCO-EXCHVS1.xlnx.xilinx.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Stuart Bershtein @ 2008-10-29 18:32 UTC (permalink / raw)
  To: linuxppc-embedded


Hello all.  I am having difficulty getting gdb6.8 and gdbserver functioning
on a xilinx ml507 evaluation board running linux-2.6-xlnx.git.  Has anyone
done this successfully?  I can get gdb to run a small application but
hitting a breakpoint (or stepping) results in a dead PPC core.  Perhaps
someone has had success with the Xilinx provided powerpc-eabi-gdb.exe?  Is
the this and the gdbserver built into XMD intended for debugging linux
applications?  Thanks in advance for your good counsel.
-- 
View this message in context: http://www.nabble.com/GDB%2C-xilinx-ml50x-tp20233115p20233115.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: GDB, xilinx ml50x
  2008-10-29 18:32 GDB, xilinx ml50x Stuart Bershtein
@ 2008-10-29 19:00 ` John Linn
  2008-10-29 21:18   ` Stu Bershtein
       [not found] ` <689CB232690D8D4E97DA6C76DA098E6C06F7F572@XCO-EXCHVS1.xlnx.xilinx.com>
  1 sibling, 1 reply; 4+ messages in thread
From: John Linn @ 2008-10-29 19:00 UTC (permalink / raw)
  To: Stuart Bershtein, linuxppc-embedded; +Cc: Brian Hill

Hi Stuart,

Most of my work is in the kernel rather than user space, but I've used
old GDB versions a small amount.  I'm copying Brian as he has used it
more than myself.

Did you get older versions of GDB to work but not the 6.8?

Did you build GDB yourself or using prebuilt?

With regards to using the eabi gdb with the EDK, my understanding (not
an expert) is that the Linux ABI is not the same as EABI such that you
might get some things to work but not all. Sorry for the fuzzy answer
there.

Thanks,
John

> -----Original Message-----
> From: linuxppc-embedded-bounces+john.linn=3Dxilinx.com@ozlabs.org
[mailto:linuxppc-embedded-
> bounces+john.linn=3Dxilinx.com@ozlabs.org] On Behalf Of Stuart Bershtein
> Sent: Wednesday, October 29, 2008 12:32 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: GDB, xilinx ml50x
> =

> =

> Hello all.  I am having difficulty getting gdb6.8 and gdbserver
functioning
> on a xilinx ml507 evaluation board running linux-2.6-xlnx.git.  Has
anyone
> done this successfully?  I can get gdb to run a small application but
> hitting a breakpoint (or stepping) results in a dead PPC core.
Perhaps
> someone has had success with the Xilinx provided powerpc-eabi-gdb.exe?
Is
> the this and the gdbserver built into XMD intended for debugging linux
> applications?  Thanks in advance for your good counsel.
> --
> View this message in context:
http://www.nabble.com/GDB%2C-xilinx-ml50x-tp20233115p20233115.html
> Sent from the linuxppc-embedded mailing list archive at Nabble.com.
> =

> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded


This email and any attachments are intended for the sole use of the named r=
ecipient(s) and contain(s) confidential information that may be proprietary=
, privileged or copyrighted under applicable law. If you are not the intend=
ed recipient, do not read, copy, or forward this email message or any attac=
hments. Delete this email message and any attachments immediately.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: GDB, xilinx ml50x
       [not found] ` <689CB232690D8D4E97DA6C76DA098E6C06F7F572@XCO-EXCHVS1.xlnx.xilinx.com>
@ 2008-10-29 19:08   ` Brian Hill
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Hill @ 2008-10-29 19:08 UTC (permalink / raw)
  To: John Linn, Stuart Bershtein, linuxppc-embedded


Stuart,
I've successfully used GDB with our GIT Linux kernel.  This was with a
root file system I'd created using buildroot
(http://buildroot.uclibc.org/).  Buildroot includes the option to build
a gdbserver ("man gdbserver" for details of how to use this application)
which can be run on the target. The XMD GDB server is most definitely
_not_ suited to debugging a Linux process.  I've used the XMD GDB server
to look at global kernel data structures and the like -- and that is
about all it could be used for.

-Brian

> -----Original Message-----
> From: John Linn
> Sent: Wednesday, October 29, 2008 1:00 PM
> To: Stuart Bershtein; linuxppc-embedded@ozlabs.org
> Cc: Brian Hill
> Subject: RE: GDB, xilinx ml50x
> =

> Hi Stuart,
> =

> Most of my work is in the kernel rather than user space, but I've used
old
> GDB versions a small amount.  I'm copying Brian as he has used it more
> than myself.
> =

> Did you get older versions of GDB to work but not the 6.8?
> =

> Did you build GDB yourself or using prebuilt?
> =

> With regards to using the eabi gdb with the EDK, my understanding (not
an
> expert) is that the Linux ABI is not the same as EABI such that you
might
> get some things to work but not all. Sorry for the fuzzy answer there.
> =

> Thanks,
> John
> =

> > -----Original Message-----
> > From: linuxppc-embedded-bounces+john.linn=3Dxilinx.com@ozlabs.org
> [mailto:linuxppc-embedded-
> > bounces+john.linn=3Dxilinx.com@ozlabs.org] On Behalf Of Stuart
Bershtein
> > Sent: Wednesday, October 29, 2008 12:32 PM
> > To: linuxppc-embedded@ozlabs.org
> > Subject: GDB, xilinx ml50x
> >
> >
> > Hello all.  I am having difficulty getting gdb6.8 and gdbserver
> functioning
> > on a xilinx ml507 evaluation board running linux-2.6-xlnx.git.  Has
> anyone
> > done this successfully?  I can get gdb to run a small application
but
> > hitting a breakpoint (or stepping) results in a dead PPC core.
Perhaps
> > someone has had success with the Xilinx provided
powerpc-eabi-gdb.exe?
> Is
> > the this and the gdbserver built into XMD intended for debugging
linux
> > applications?  Thanks in advance for your good counsel.
> > --
> > View this message in context:
http://www.nabble.com/GDB%2C-xilinx-ml50x-
> tp20233115p20233115.html
> > Sent from the linuxppc-embedded mailing list archive at Nabble.com.


This email and any attachments are intended for the sole use of the named r=
ecipient(s) and contain(s) confidential information that may be proprietary=
, privileged or copyrighted under applicable law. If you are not the intend=
ed recipient, do not read, copy, or forward this email message or any attac=
hments. Delete this email message and any attachments immediately.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: GDB, xilinx ml50x
  2008-10-29 19:00 ` John Linn
@ 2008-10-29 21:18   ` Stu Bershtein
  0 siblings, 0 replies; 4+ messages in thread
From: Stu Bershtein @ 2008-10-29 21:18 UTC (permalink / raw)
  To: John Linn, linuxppc-embedded@ozlabs.org; +Cc: Brian Hill

Hello John,

> Did you get older versions of GDB to work but not the 6.8?

For the server (where the problem _seems_ to lie), I just have gdbserver 6.=
8 built from sources and that's all I've ever tried.

> but I've used old GDB versions a small amount

Any idea what version?  If you have an executable that you could zip up and=
 send me I'd like to try it.

> With regards to using the eabi gdb with the EDK, my understanding (not an=
 expert) is that the Linux ABI is not the same as EABI

I've been talked out of using this in any case.  I've plenty of [--host=3Dx=
86_64-unknown-linux-gnu --target=3Dpowerpc-linux] versions of gdb (client) =
around and they all behave identically.

Thanks,
Stu




-----Original Message-----
From: John Linn [mailto:John.Linn@xilinx.com]
Sent: Wednesday, October 29, 2008 12:00 PM
To: Stu Bershtein; linuxppc-embedded@ozlabs.org
Cc: Brian Hill
Subject: RE: GDB, xilinx ml50x

Hi Stuart,

Most of my work is in the kernel rather than user space, but I've used
old GDB versions a small amount.  I'm copying Brian as he has used it
more than myself.

Did you get older versions of GDB to work but not the 6.8?

Did you build GDB yourself or using prebuilt?

With regards to using the eabi gdb with the EDK, my understanding (not
an expert) is that the Linux ABI is not the same as EABI such that you
might get some things to work but not all. Sorry for the fuzzy answer
there.

Thanks,
John

> -----Original Message-----
> From: linuxppc-embedded-bounces+john.linn=3Dxilinx.com@ozlabs.org
[mailto:linuxppc-embedded-
> bounces+john.linn=3Dxilinx.com@ozlabs.org] On Behalf Of Stuart Bershtein
> Sent: Wednesday, October 29, 2008 12:32 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: GDB, xilinx ml50x
>
>
> Hello all.  I am having difficulty getting gdb6.8 and gdbserver
functioning
> on a xilinx ml507 evaluation board running linux-2.6-xlnx.git.  Has
anyone
> done this successfully?  I can get gdb to run a small application but
> hitting a breakpoint (or stepping) results in a dead PPC core.
Perhaps
> someone has had success with the Xilinx provided powerpc-eabi-gdb.exe?
Is
> the this and the gdbserver built into XMD intended for debugging linux
> applications?  Thanks in advance for your good counsel.
> --
> View this message in context:
http://www.nabble.com/GDB%2C-xilinx-ml50x-tp20233115p20233115.html
> Sent from the linuxppc-embedded mailing list archive at Nabble.com.
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded


This email and any attachments are intended for the sole use of the named r=
ecipient(s) and contain(s) confidential information that may be proprietary=
, privileged or copyrighted under applicable law. If you are not the intend=
ed recipient, do not read, copy, or forward this email message or any attac=
hments. Delete this email message and any attachments immediately.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-29 21:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 18:32 GDB, xilinx ml50x Stuart Bershtein
2008-10-29 19:00 ` John Linn
2008-10-29 21:18   ` Stu Bershtein
     [not found] ` <689CB232690D8D4E97DA6C76DA098E6C06F7F572@XCO-EXCHVS1.xlnx.xilinx.com>
2008-10-29 19:08   ` Brian Hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox