linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* GDB for host development platform
@ 2000-11-10 10:35 john zhan
  2000-11-10 13:55 ` Daris A Nevil
  2000-11-10 16:35 ` Cal Erickson
  0 siblings, 2 replies; 6+ messages in thread
From: john zhan @ 2000-11-10 10:35 UTC (permalink / raw)
  To: linuxppc-embedded


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/

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

* Re: GDB for host development platform
  2000-11-10 10:35 GDB for host development platform john zhan
@ 2000-11-10 13:55 ` Daris A Nevil
  2000-11-11  7:34   ` john zhan
  2000-11-10 16:35 ` Cal Erickson
  1 sibling, 1 reply; 6+ messages in thread
From: Daris A Nevil @ 2000-11-10 13:55 UTC (permalink / raw)
  To: john zhan; +Cc: linuxppc-embedded


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/

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

* Re: GDB for host development platform
  2000-11-10 10:35 GDB for host development platform john zhan
  2000-11-10 13:55 ` Daris A Nevil
@ 2000-11-10 16:35 ` Cal Erickson
  1 sibling, 0 replies; 6+ messages in thread
From: Cal Erickson @ 2000-11-10 16:35 UTC (permalink / raw)
  To: john zhan; +Cc: linuxppc-embedded


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/

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

* Re: GDB for host development platform
  2000-11-10 13:55 ` Daris A Nevil
@ 2000-11-11  7:34   ` john zhan
  2000-11-12 23:50     ` Graham Stoney
  2000-11-13 15:11     ` Cal Erickson
  0 siblings, 2 replies; 6+ messages in thread
From: john zhan @ 2000-11-11  7:34 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Daris A Nevil, Cal Erickson


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/

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

* Re: GDB for host development platform
  2000-11-11  7:34   ` john zhan
@ 2000-11-12 23:50     ` Graham Stoney
  2000-11-13 15:11     ` Cal Erickson
  1 sibling, 0 replies; 6+ messages in thread
From: Graham Stoney @ 2000-11-12 23:50 UTC (permalink / raw)
  To: john zhan, john zhan, linuxppc-embedded; +Cc: Daris A Nevil, Cal Erickson


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/

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

* Re: GDB for host development platform
  2000-11-11  7:34   ` john zhan
  2000-11-12 23:50     ` Graham Stoney
@ 2000-11-13 15:11     ` Cal Erickson
  1 sibling, 0 replies; 6+ messages in thread
From: Cal Erickson @ 2000-11-13 15:11 UTC (permalink / raw)
  To: john zhan; +Cc: linuxppc-embedded, Daris A Nevil


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/

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

end of thread, other threads:[~2000-11-13 15:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-10 10:35 GDB for host development platform john zhan
2000-11-10 13:55 ` Daris A Nevil
2000-11-11  7:34   ` john zhan
2000-11-12 23:50     ` Graham Stoney
2000-11-13 15:11     ` Cal Erickson
2000-11-10 16:35 ` Cal Erickson

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).