GDB for host development platform

6 messages, 4 authors, 2000-11-13 · open the first message on its own page

GDB for host development platform

From: john zhan <hidden>
Date: 2000-11-10 10:35:10

I have now successfully build GDB-4.18 for linux/ppc.
Both target and host are powerpc-linux.
When I was trying to run a executable in my target
hardware(8xx) with gdb(target for exec),
 e.g. hello,
GDB said
"
Starting program: ./hello
Don't know how to run.  Try "help target".
"
Questions:
    1. what's going on it?
    2. Does(Did) anyone do the same thing?
    3.The cross-debugger + target gdb server with a serial connection
         is the unique choices?
    4. I wonder which is the best way to debug a linux/ppc application
        on the embedded platform.
    5. What do you think a full host development environment
        (including native comilper,debugger etc) in the embedded
        system.

thank for any response.

regards.
john zhan.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: GDB for host development platform

From: Daris A Nevil <hidden>
Date: 2000-11-10 13:55:18

John,

Sounds as though you did not connect to the target correctly.  I have
written a procedure we use to connect to a PPC target over ethernet.
You can view this at:

	http://qslinux.org/docs/cross/gdb/index.html

Hope this helps.

Regards,
Daris Nevil


john zhan wrote:
I have now successfully build GDB-4.18 for linux/ppc.
Both target and host are powerpc-linux.
When I was trying to run a executable in my target
hardware(8xx) with gdb(target for exec),
 e.g. hello,
GDB said
"
Starting program: ./hello
Don't know how to run.  Try "help target".
"
Questions:
    1. what's going on it?
    2. Does(Did) anyone do the same thing?
    3.The cross-debugger + target gdb server with a serial connection
         is the unique choices?
    4. I wonder which is the best way to debug a linux/ppc application
        on the embedded platform.
    5. What do you think a full host development environment
        (including native comilper,debugger etc) in the embedded
        system.

thank for any response.

regards.
john zhan.
--
Daris A Nevil
Simple Network Magic Corporation
401 Kentucky Lane
McKinney, TX 75069
214-793-7757
dnevil@snmc.com
www.snmc.com
quickstack.com
qslinux.org

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: GDB for host development platform

From: Cal Erickson <hidden>
Date: 2000-11-10 16:35:22

John,
Why not take a look at the Cross Development Kit from
MontaVista Software? If you go to their web site you
can download it for free. It comes with GDB and
GDB server which uses the ethernet to debug.

Cal Erickson

john zhan wrote:
I have now successfully build GDB-4.18 for linux/ppc.
Both target and host are powerpc-linux.
When I was trying to run a executable in my target
hardware(8xx) with gdb(target for exec),
 e.g. hello,
GDB said
"
Starting program: ./hello
Don't know how to run.  Try "help target".
"
Questions:
    1. what's going on it?
    2. Does(Did) anyone do the same thing?
    3.The cross-debugger + target gdb server with a serial connection
         is the unique choices?
    4. I wonder which is the best way to debug a linux/ppc application
        on the embedded platform.
    5. What do you think a full host development environment
        (including native comilper,debugger etc) in the embedded
        system.

thank for any response.

regards.
john zhan.
--
===========================================================================
Cal Erickson                 MontaVista Software Inc.
Customer Support Engineer    490 Potrero Avenue
Phone (408) 328-0304         Sunnyvale CA 94085
Fax   (408) 328-9204         e-mail cal_erickson@mvista.com
Pager 877-566-2012           support 1-800-759-8888 pin 202-7489
web http://www.mvista.com    support e-mail: support@mvista.com
eCode: http://cal@work.com.ecode.com
===========================================================================


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: GDB for host development platform

From: john zhan <hidden>
Date: 2000-11-11 07:34:32

Thank you, Daris and Cal, for your reponse.
I believe cross-debugger is good way,no mater the
connection method, serial or Ethernet.
My point is the native debugger targeted exec-file.
The background of my idea is that I will build a new
 ppc system which have all necessary peripheral including
a harddisk, keyboard ,  graphics device and other
standard port.
Base this platform to develop embedded applications,
In fact,I am afraid I will break the traditional development
 mode ,discard the host machine, combine host and  target
 physically, all in one,  like programming in linux/pc.
 I think it can be easy acceptable.
So,I hope GDB can work with exec-file target in a standalone
linux/ppc machine.
It is the worst news that GDB is not ready for linux/ppc exec-file target.
Can someone tell me more about this?
But I can still use GDB targeted extended-remote in native environment.right?

Thanks in advance.

john zhan.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: GDB for host development platform

From: Graham Stoney <hidden>
Date: 2000-11-12 23:50:35

On Sat, 11 Nov 2000, john zhan wrote:
So,I hope GDB can work with exec-file target in a standalone
linux/ppc machine.
It is the worst news that GDB is not ready for linux/ppc exec-file target.
I believe you are doing something wrong; probably you have configured gdb
wrongly.  Certainly there are many people using gdb natively on powerpc-linux,
and many others using it in cross-development environments.  I've done both
successfully .  It sounds like yours is configured for cross-development, but
you're trying to use it native. What parameters did you pass to configure?

(And while I'm here, why are you using the old gdb-4.18 rather than gdb-5.0?)

Regards,
Graham
--
Graham Stoney
Assistant Technology Manager
Canon Information Systems Research Australia
Ph: +61 2 9805 2909  Fax: +61 2 9805 2929

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: GDB for host development platform

From: Cal Erickson <hidden>
Date: 2000-11-13 15:11:12

John,
If you want to do that check out MontaVista again.
There is both a cross development and native
version of gdb on the product. The version of GDB
is 5.0.
Cal

john zhan wrote:
Thank you, Daris and Cal, for your reponse.
I believe cross-debugger is good way,no mater the
connection method, serial or Ethernet.
My point is the native debugger targeted exec-file.
The background of my idea is that I will build a new
 ppc system which have all necessary peripheral including
a harddisk, keyboard ,  graphics device and other
standard port.
Base this platform to develop embedded applications,
In fact,I am afraid I will break the traditional development
 mode ,discard the host machine, combine host and  target
 physically, all in one,  like programming in linux/pc.
 I think it can be easy acceptable.
So,I hope GDB can work with exec-file target in a standalone
linux/ppc machine.
It is the worst news that GDB is not ready for linux/ppc exec-file target.
Can someone tell me more about this?
But I can still use GDB targeted extended-remote in native environment.right?

Thanks in advance.

john zhan.
--
===========================================================================
Cal Erickson                 MontaVista Software Inc.
Customer Support Engineer    490 Potrero Avenue
Phone (408) 328-0304         Sunnyvale CA 94085
Fax   (408) 328-9204         e-mail cal_erickson@mvista.com
Pager 877-566-2012           support 1-800-759-8888 pin 202-7489
web http://www.mvista.com    support e-mail: support@mvista.com
eCode: http://cal@work.com.ecode.com
===========================================================================


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help