GDB for host development platform
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/
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
Quoted 22 lines · john zhan
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.
Quoted 5 lines
thank for any response.
regards.
john zhan.
--
Daris A Nevil
Simple Network Magic Corporation
401 Kentucky Lane
McKinney, TX 75069
214-793-7757
[email protected]
www.snmc.com
quickstack.com
qslinux.org
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
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/
Quoted 3 lines · john zhan
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/
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
Quoted 19 lines · john zhan
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?
Quoted 3 lines
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 [email protected] Pager 877-566-2012 support 1-800-759-8888 pin 202-7489 web http://www.mvista.com support e-mail: [email protected]
eCode: http://[email protected]
===========================================================================
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
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
Quoted 21 lines · john zhan
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.
Quoted 5 lines
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 [email protected] Pager 877-566-2012 support 1-800-759-8888 pin 202-7489 web http://www.mvista.com support e-mail: [email protected]
eCode: http://[email protected]
===========================================================================
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/