This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Does not stop at break point in GDB-remote


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 TCP/IP test programs.

But I cannot run Insight or GDB,so please help me.
Insight person suggested me to ask GDB mailing list.

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

I made this nc_test_slave.elf by renaming nc_test_slave file that is outputted excuting "make".
Here are excerpts from makefile.
---
export PREFIX := /home/link/aki-net-0910-config-stub-global-common/untitled_install
XCC = h8300-elf-gcc
CFLAGS = -mh -mint32 -g -Wall -I$(PREFIX)/include -ffunction-sections -fdata-sections
LDFLAGS = -mh -mint32 -nostartfiles -L$(PREFIX)/lib -Wl,--gc-sections -Wl,--Map -Wl,nc_test_slave.map
LIBS = -Ttarget.ld -nostdlib
LD = $(XCC)
all: nc_test_slave
nc_test_slave.o: nc_test_slave.c
$(XCC) -c -o $*.o $(CFLAGS) $<
nc_test_slave: nc_test_slave.o
$(LD) $(LDFLAGS) -o $@ $@.o $(LIBS)
---


After Insight was started up,I entered next GDB commands on console window.
-- GDB commands on console window log
(gdb) set remotebaud 57600
(gdb) set remotelogfile remote-5.log
(gdb) target remote /dev/com4
Remote debugging using /dev/com4
0x000073a4 in ?? ()

(gdb) load
Loading section .text, size 0x5d58a lma 0x410000
Loading section .rodata, size 0x431e lma 0x46d58a
Loading section .data, size 0x16f8 lma 0x4718a8
Start address 0x410000, load size 405408
Transfer rate: 3 KB/sec, 63 bytes/write.

(gdb) b cyg_start
Note: breakpoints 1 (disabled), 2 (disabled), 3 (disabled) and 4 also set at pc 0x411dda.
Breakpoint 5 at 0x411dda: file nc_test_slave.c, line 729.


(gdb) c
Continuing.
Network stack using 69632 bytes for misc space
69632 bytes for mbufs
139264 bytes for mbuf clusters
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'dp83902a_eth0'
DP83902A - eeprom ESA: 00:02:cb:01:42:b9
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x004728a8)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x00472298)
New domain route at 0x00000000
[cyg_net_init] Init: call_route_init(0x00000000)
[cyg_net_init] Done
.
Here never stops at break point(=cyg_start).
Nothing happens,although state is "Running" and mouse_cursor is sand-glass 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.

I do not know why it does not stop at break point(=cyg_start).

For reference, I set GDB stubs options like below(sorry it's from eCos ecc file).
---
cdl_option CYGBLD_BUILD_GDB_STUBS {
# Flavor: bool
# No user value, uncomment the following line to provide one.
# user_value 0
# value_source default
# Default value: 0
# Requires: CYGSEM_HAL_ROM_MONITOR
# CYGSEM_HAL_ROM_MONITOR == 0
# --> 0
# Requires: CYGBLD_BUILD_COMMON_GDB_STUBS
# CYGBLD_BUILD_COMMON_GDB_STUBS == 1
# --> 1
# Requires: CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
# CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS == 1
# --> 1
# Requires: CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
# CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT == 1
# --> 1
# Requires: CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
# CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT == 1
# --> 1
};
---


I send remote-5.log,and map file that was created by making nc_test_slave.elf,both in compressed form.

I'd appreciate any help.

Masahiro Ariga

Attachment: sendfiles.tar.bz2
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]