public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Øyvind Harboe" <oyvind.harboe@zylin.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Problems with RedBoot and serial port debugging
Date: Tue, 25 May 2004 19:44:00 -0000	[thread overview]
Message-ID: <1085513303.5565.35.camel@famine> (raw)

Normally, I use a JTAG debugger, but for basic eCos demonstration
purposes, I'd like to use RedBoot GDB support and serial debugging.

However, I can't get breakpoitns to work properly...

Here is what I did:

- I've built and flashed a RedBoot to EB40a
- I've built a hello world app which has entry point at 0x10000. It runs
out of RAM.
- Debug session:

--------
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS4
Remote debugging using /dev/ttyS4
0x01004958 in ?? ()
(gdb) load
Loading section .rom_vectors, size 0x40 lma 0x10000
Loading section .text, size 0xa360 lma 0x10040
Loading section .rodata, size 0x294 lma 0x1a3a0
Loading section .data, size 0x2e4 lma 0x1a634
Start address 0x10040, load size 43288
Transfer rate: 28858 bits/sec, 300 bytes/write.
(gdb) break main
Breakpoint 1 at 0x10564: file hello.cpp, line 5.
(gdb) 
(gdb) c
Continuing.

=============> would have expected debugger to break @ main


Interrupted while waiting for the program.
Give up (and stop debugging it)? (y or n) y
(gdb) Quit
----------------

- I fire up HyperTerminal to see if I can figure out whats going on.
- I find RedBoot alive and well ??
- Just for the heck of it, I start my app
- Now it hits the breakpoint!
------------------
RedBoot> go 0x10040
$T05thread:00000001;0f:64050100;0d:ace50100;#ea
------------------

- Continuing in GDB session

-------------------
(gdb) target remote /dev/ttyS4
Remote debugging using /dev/ttyS4
main () at hello.cpp:5
5         printf("Hello world\n");
(gdb) 
--------------------

-- 
Øyvind Harboe
http://www.zylin.com



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

             reply	other threads:[~2004-05-25 19:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25 19:44 Øyvind Harboe [this message]
2004-05-25 20:52 Øyvind Harboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1085513303.5565.35.camel@famine \
    --to=oyvind.harboe@zylin.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).