public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "m mariga" <ma_ariga@yahoo.co.jp>
To: <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] How to set GDB Stub Options in order to run insight ?
Date: Fri, 04 Sep 2009 05:54:00 -0000	[thread overview]
Message-ID: <87D23C72FA344A339A61EA9D3E333467@masahiro> (raw)
In-Reply-To: <095F57A600314F7E86F6731FCC889A3D@masahiro>

Hello,

I am working on eCos 3.0 using Akizuki H8/3068 Network board.
That board's CPU is H8/3069F .
I succeeded to install FreeBSD stack and ran nc_test_slave/master test 
programs.

But I cannot run h8300-elf-insight,so please help me.

I start up insight like next line.
$ h8300-elf-insight.exe nc_test_slave.elf

After insight is started up,I entered next commands on console window.
----
(gdb) set remotebau 57600      --- I setted baudrate 57600
(gdb) target remote /dev/com4
Remote debugging using /dev/com4
0x000073a4 in ?? ()

(gdb) load
Loading section .text, size 0x599ce lma 0x410000
Loading section .rodata, size 0x406a lma 0x4699ce
Loading section .data, size 0x1660 lma 0x46da38
Start address 0x410000, load size 389272
Transfer rate: 3 KB/sec, 63 bytes/write.

(gdb) b cyg_start
Note: breakpoint 2 also set at pc 0x411dca.
Breakpoint 3 at 0x411dca: file nc_test_slave.c, line 729.

(gdb) c
Continuing. ...

At this point nothing happens.Although state is "Running" and mouse_cursor 
is running form.
Nothing available(even Ctr-C does not work) except stop button on 
insight-window's main head.
When clicked stop button,appered message window saying,
"No response from target.Detach from target
(and stop debugging it)?"
And clicked YES button, then appeared next line.

Error: Watchdog timeout has expired.  Target detached.

(gdb)

My guessing is GDB stub not functioning properly.

Here are questions.
First of all,couldn't I set "net"and "stubs" Packages together on ConfigTool 
?
By Packages,I mean,it is in Templates dialog-window not in Packages 
dialog-window.
When I selected "net",there's nothing in  Packages dialog-window 
corresponding to "stubs" function.
If I could not set both functions together on ConfigTool conveniently,then I 
must convert cdl files.

I think next Options are related to GDB stubs.
CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
CYGBLD_BUILD_GDB_STUBS
CYGBLD_BUILD_COMMON_GDB_STUBS

I checked current definitions in cdl files.
cdl_option CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS {
    default_value 0

cdl_option CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT {
    requires      CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
    default_value CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS

cdl_option CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT {
    active_if     { CYGSEM_HAL_USE_ROM_MONITOR || 
CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }
    active_if     { CYGINT_HAL_DEBUG_GDB_CTRLC_UNSUPPORTED == 0 }
    default_value { !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS }

cdl_option CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT {
    active_if     { CYGSEM_HAL_ROM_MONITOR || 
CYGDBG_KERNEL_DEBUG_GDB_THREAD_SUPPORT }
    default_value 1

cdl_option CYGBLD_BUILD_GDB_STUBS {
    default_value 0

cdl_option CYGBLD_BUILD_COMMON_GDB_STUBS {
    default_value 0

How should I set these options in order to insatall GDB stub ?

I am very much obliged to your help.

m mariga


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

  parent reply	other threads:[~2009-09-04  5:54 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-21 14:08 [ECOS] h8300 cannot find libgcc.a m mariga
2009-07-21 15:04 ` [ECOS] " John Dallaway
2009-07-22 12:28   ` m mariga
2009-07-22 13:58     ` John Dallaway
2009-07-23 21:32       ` m mariga
2009-07-24  8:34         ` John Dallaway
2009-07-28 14:40           ` m mariga
2009-08-09 23:11             ` m mariga
2009-08-17  7:42               ` John Dallaway
2009-09-04  5:54               ` m mariga [this message]
2009-09-04  9:38                 ` [ECOS] Re: How to set GDB Stub Options in order to run insight ? John Dallaway
2009-09-04 18:33                   ` m mariga
2009-09-07  9:40                     ` m mariga
2009-09-07 11:31                       ` John Dallaway
2009-09-07 16:10                         ` [ECOS] cyg_scheduler_lock and DSR's Jim Bradleigh
2009-09-11 20:37                           ` Bart Veer
2009-09-08 10:15                         ` [ECOS] Re: How to set GDB Stub Options in order to run insight ? m mariga
2009-09-28  9:54                           ` [ECOS] About h8000 eCos GDB-Stub m mariga
2009-09-30 10:06                             ` m mariga
2009-10-16 14:34                               ` [ECOS] How to connect RedBoot via Telnet running application m mariga
2009-10-16 14:42                                 ` Gary Thomas
     [not found]                                   ` <6FC88324D6C144EFB39FFE3CBF0E5B8D@masahiro>
2009-10-16 15:40                                     ` Gary Thomas
2009-10-16 16:11                                       ` m mariga
2009-10-16 16:43                                       ` m mariga
2009-10-16 16:54                                         ` Gary Thomas
2009-09-19  1:51                         ` [ECOS] Re: How to set GDB Stub Options in order to run insight ? m mariga

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=87D23C72FA344A339A61EA9D3E333467@masahiro \
    --to=ma_ariga@yahoo.co.jp \
    --cc=ecos-discuss@ecos.sourceware.org \
    /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).