public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How is the connection to the target board(mbx)with GDB?
@ 2000-09-16  2:14 Àå¿øÈ£
  2000-09-16  8:40 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Àå¿øÈ£ @ 2000-09-16  2:14 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]




Hi. 
 
I want to know how is the serial connection to the 
target board with GDB.
I don't understand the GDB documentation.
Summery to the method, please.
I'm already installed GDB in my host(window NT) and 
GDB stub rom.
 
Thanks.

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

* Re: [ECOS] How is the connection to the target board(mbx)with GDB?
  2000-09-16  2:14 [ECOS] How is the connection to the target board(mbx)with GDB? Àå¿øÈ£
@ 2000-09-16  8:40 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-09-16  8:40 UTC (permalink / raw)
  To: Àå¿øÈ£
  Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1845 bytes --]

> Àå¿øÈ£ wrote:
> This is a multi-part message in MIME format.
>  
> ------=_NextPart_000_0030_01C02006.A13E9660
> Content-Type: text/plain;
>         charset="iso-8859-1"
> Content-Transfer-Encoding: base64
>  
> SGkuIA0KDQpJIHdhbnQgdG8ga25vdyBob3cgaXMgdGhlIHNlcmlhbCBjb25uZWN0aW9uIHRvIHRo
> ZSB0YXJnZXQgYm9hcmQgd2l0aCBHREIuDQpJIGRvbid0IHVuZGVyc3RhbmQgdGhlIEdEQiBkb2N1
> bWVudGF0aW9uLg0KU3VtbWVyeSB0byB0aGUgbWV0aG9kLCBwbGVhc2UuDQpJJ20gYWxyZWFkeSBp                 

Don't post in MIME! If you cannot configure your mail reader to stop being
antisocial, use a different one.

> I want to know how is the serial connection to the target board with GDB.
> I don't understand the GDB documentation.
> Summery to the method, please.
> I'm already installed GDB in my host(window NT) and GDB stub rom.

A summary would be:
Start GDB with:

arm-elf-gdb -nw TESTEXE

where TESTEXE is the full name and path of the program to debug.
"arm-elf-gdb" is the name of the GDB, and you should use a different one
depending on the target you are using (which you didn't say) such as
powerpc-eabi-gdb

(gdb) set remotebaud 38400
(gdb) target remote com1

You should then probably get output like:
Remote debugging using com1
0x3390 in ?? ()
    at /home/jlarmour/ecc/ecc/kernel/current/src/common/clock.cxx:631
631         pcc->div2 = d2;
Current language:  auto; currently c++

Although the numbers and other details might be different. The point is
that it should return with something.

You can then use the GDB command "load" to load the program, and then
"continue" to run it.

You may need a different serial speed than 38400 - it depends on the target
(which you didn't say)

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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

end of thread, other threads:[~2000-09-16  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-16  2:14 [ECOS] How is the connection to the target board(mbx)with GDB? Àå¿øÈ£
2000-09-16  8:40 ` Jonathan Larmour

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 read-only IMAP folder(s) and NNTP newsgroup(s).