This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
gdbserver problem?
- From: XUE <xyzhit at sohu dot com>
- To: <gdb at sources dot redhat dot com>
- Date: Tue, 14 May 2002 10:38:36 +0800 (CST)
- Subject: gdbserver problem?
I download gdb+dejagnu-20020403 and built sucessfully on ARM/uclinux. I also modify and built the gdbserver flat binary.
I am running arm-elf-gdb on the host and gdbserver on the target. connect ok.
I can hit 'c', and it will run to completion.
when I set a break and continue, it seems gdbserver can catch the break. but arm-elf-gdb can't get SIGTRAP(for break),it gets SIGILL.
Is there anybody who has gdbserver working correctly on ARM/uclinux?
thanks!
/> gdbserver 10.130.11.112:7777 /bin/a.flat start_inferior......... create_inferior ............. Process /bin/a.flat created; pid = 12 usr_fetch_inferior_registers.. return-WSTOPSIG.. start_inferior finished Remote debugging from host 10.130.11.112 getpkt......
------------------------->>>>>>>>H
<<<<<<<<<<<<<----------------OK
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>q
<<<<<<<<<<<<<----------------
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>q
<<<<<<<<<<<<<----------------
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>?
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:40601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>H
usr_fetch_inferior_registers..
<<<<<<<<<<<<<----------------OK
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>g
<<<<<<<<<<<<<----------------010000008c191c0094191c00000000000000000000000000000
00000000000000000000000000000508d1b00000000000000000080191c000000000040601b00000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------00009fef
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------3000b1a8
putpkt&&&&&&&&&......
getpkt......
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
(gdb) target remote 10.130.10.5:7777
Remote debugging using 10.130.10.5:7777
0x001b6040 in ?? () \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
(gdb) add-symbol-file demo.x 0x001b6040
add symbol table from file "demo.x" at
.text_addr = 0x1b6040
(y or n) y
Reading symbols from demo.x...done. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
------------------------->>>>>>>>q
<<<<<<<<<<<<<----------------
putpkt&&&&&&&&&......
getpkt......
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
(gdb) l
1 #include <stdio.h>
2
3 main()
4 {
5 printf("a.........................\n")
6 printf("b.........................\n")
7 printf("c.........................\n")
8 printf("d.........................\n")
9 printf("e.........................\n")
10 printf("f.........................\n")
(gdb) b 10
Breakpoint 1 at 0x1b60c4: file demo.c, line 10.
(gdb) s \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
------------------------->>>>>>>>q
<<<<<<<<<<<<<----------------
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>Z
<<<<<<<<<<<<<----------------
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------50009fe5
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>X
<<<<<<<<<<<<<----------------
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>M
<<<<<<<<<<<<<----------------OK
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>H
<<<<<<<<<<<<<----------------OK
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>e
<<<<<<<<<<<<<----------------
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:44601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:48601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:4c601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:50601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:54601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:58601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:5c601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:60601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>s
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG..
TARGET_SIGNAL_TRAP <<<<<<<<<<<<<----------------T050b:00000000;0d:80191c00;0f:8c601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------64009fe5
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>M
<<<<<<<<<<<<<----------------OK
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>c
myresume......
usr_fetch_inferior_registers..
return-WSTOPSIG.. <<<<<<<<<<<<<----------------T040b:7c191c00;0d:70191c00;0f:a0601b00;
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>M
<<<<<<<<<<<<<----------------OK
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>g
<<<<<<<<<<<<<----------------000000000100000000000000040000000000000000000000000
00000000000000000000000000000000000007c191c001c8f1b0070191c008c701b00a0601b00000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------0dc0a0e1
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------00d82de9
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------04b04ce2
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------3e0400eb
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------64009fe5
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------350000eb
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------60009fe5
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------330000eb
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------5c009fe5
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------310000eb
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------58009fe5
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------2f0000eb
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------54009fe5
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------2d0000eb
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------fedeffe7
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------2b0000eb
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>M
<<<<<<<<<<<<<----------------OK
putpkt&&&&&&&&&......
getpkt......
///////////////////////////////////////////////////////////////////////////////////////////
(gdb) s
Single stepping until exit from function start,
which has no line number information.
Program received signal SIGILL, Illegal instruction.
0x001b60a0 in main () at demo.c:5
5 printf("a.........................\n");
///////////////////////////////////////////////////////////////////////////////////////////
(gdb) s
Program terminated with signal SIGILL, Illegal instruction.
The program no longer exists.
////////////////////////////////////////////////////////////////////////////////////////////
------------------------->>>>>>>>m
<<<<<<<<<<<<<----------------50009fe5
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>M
<<<<<<<<<<<<<----------------OK
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>E
<<<<<<<<<<<<<----------------
putpkt&&&&&&&&&......
getpkt......
------------------------->>>>>>>>S
myresume......
Child terminated with signal = 4 <<<<<<<<<<<<<----------------X04 putpkt&&&&&&&&&......
Child terminated with signal = 0x4
GDBserver exiting
/>