public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: K Srinivas Aithal <ksaithal_ecos@yahoo.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Problems with GDB on MPC8240
Date: Thu, 09 Aug 2001 10:46:00 -0000	[thread overview]
Message-ID: <20010809174602.2562.qmail@web14304.mail.yahoo.com> (raw)

Hi,

We are facing a lot of problems with bringing up gdb. We have already
brought up RedBoot. I'm able to connect to the target through gdb. I'm
also able to load the program. Once I give the "continue" I'm struck;
even if I give a breakpoint. I'm testing withj the Hello application.



The follwing is the snapshot of what is happening at the FRIST TIME
after boot of my linux (RH6.2) host
(gdb) load
Loading section .text, size 0x138e4 lma 0xf6000
Loading section .rodata, size 0x858 lma 0x1098e8
Loading section .data, size 0x704 lma 0x10a140
Start address 0xf6000 , load size 84032
Transfer rate: 26890 bits/sec, 506 bytes/write.
(gdb) set debug remote 1
(gdb) break cyg_user_start
Sending packet: $mf6544,4#06...Ack
Packet received: 4082102c
Breakpoint 1 at 0xf6544: file hello.c, line 13.
(gdb) continue
Continuing.
Sending packet: $Z0,f6544,4#4f...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T0f40:50494338;01:000030a3;

Program received signal SIGTERM, Terminated.
Sending packet: $z0,f6544,4#6f...Ack
Packet received: OK
0x50494338 in ?? ()





The follwing is the snapshot of what is happening for all OTHER tries
after boot of my linux (RH6.2) host
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
0xa6358 in ?? ()
(gdb) load
Loading section .text, size 0x138e4 lma 0xf6000
Loading section .rodata, size 0x858 lma 0x1098e8
Loading section .data, size 0x704 lma 0x10a140
Start address 0xf6000 , load size 84032
Transfer rate: 26890 bits/sec, 506 bytes/write.
(gdb)
(gdb) set debug remote 1
(gdb) del 1
(gdb) b cyg_user_start
Sending packet: $mf6544,4#06...Ack
Packet received: 4082102c
Breakpoint 2 at 0xf6544: file hello.c, line 13.
(gdb) continue
Continuing.
Sending packet: $Z0,f6544,4#4f...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack
(gdb) continue
Continuing.
Sending packet: $Z0,f6544,4#4f...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack


I donot understand why the program is getting the SIGTERM ONLY for the
first time.


Also, I found that when I give the "continue" command at the gdb
console prompt, the RedBoot is able to return in the sequence of
functions  __handle_exception(), cyg_hal_exception_handler(),
cyg_default_exception_handler(). I have yet to trace if it is restoring
the state propoerly now.  


I hope it is not required to port any extra debugging stuffs in the
powerpc HAL (this is because it is already there for PPC603 simulator
version and MPC8240's core is PPC603). I have enabled the
"...BREAKPOINT_LIST_SIZE..." macro;but still it is the same; is this
really required. I donot know where am I doing the mistake.


The flash of my board has DINK32 running on it. I'm running the RAM
version of RedBoot on DINK32. My "Hello application" is linked to the
memory area which is flagged free by the RedBoot. Could there a clash
between the exception handlers of the DINK and eCos.


I didn't get any help for some of my previous mails on this discuss
list. Please help us to start debugging my applications.



Thanks and Regards,
K Srinivas Aithal

 



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

             reply	other threads:[~2001-08-09 10:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-09 10:46 K Srinivas Aithal [this message]
2001-08-10  0:19 ` Jesper Skov
2001-08-16  1:55   ` K Srinivas Aithal
2001-08-16  2:06     ` Jesper Skov
2001-08-20  9:11       ` K Srinivas Aithal

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=20010809174602.2562.qmail@web14304.mail.yahoo.com \
    --to=ksaithal_ecos@yahoo.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).