From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 821 invoked by alias); 4 Sep 2009 05:54:04 -0000 Received: (qmail 812 invoked by uid 22791); 4 Sep 2009 05:54:02 -0000 X-SWARE-Spam-Status: No, hits=1.7 required=5.0 tests=AWL,BAYES_50,J_CHICKENPOX_21,J_CHICKENPOX_36,J_CHICKENPOX_42,J_CHICKENPOX_81,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ybbsmtp07.mail.ogk.yahoo.co.jp (HELO ybbsmtp07.mail.ogk.yahoo.co.jp) (124.83.153.127) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 04 Sep 2009 05:53:57 +0000 Received: (qmail 94765 invoked by alias); 4 Sep 2009 05:53:52 -0000 Received: from unknown (HELO masahiro) (219.36.42.48 with poptime) by ybbsmtp07.mail.ogk.yahoo.co.jp with SMTP; 4 Sep 2009 05:53:52 -0000 X-Apparently-From: Message-ID: <87D23C72FA344A339A61EA9D3E333467@masahiro> From: "m mariga" To: References: <3100D422DF3A4D7B9D337FD86D646F40@masahiro> <4A65D8D3.9060400@dallaway.org.uk> <3F8ED0BDC83C43259ADD0DDE963395DF@masahiro> <4A671AEE.2000101@dallaway.org.uk> <407D126036C3460AB7AA0264475F04E0@masahiro> <4A6971F2.1030100@dallaway.org.uk> <095F57A600314F7E86F6731FCC889A3D@masahiro> Date: Fri, 04 Sep 2009 05:54:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] How to set GDB Stub Options in order to run insight ? X-SW-Source: 2009-09/txt/msg00054.txt.bz2 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