From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8909 invoked by alias); 14 May 2002 02:38:52 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8900 invoked from network); 14 May 2002 02:38:48 -0000 Received: from unknown (HELO websmtp03.sohu.com) (61.135.145.13) by sources.redhat.com with SMTP; 14 May 2002 02:38:48 -0000 Received: from mail.sohu.com (unknown [192.168.41.42]) by websmtp03.sohu.com (Postfix) with ESMTP id 7BD0E6771B; Tue, 14 May 2002 10:38:13 +0800 (CST) Message-ID: <7778306.1021343916259.JavaMail.postfix@mailsrv2> Date: Mon, 13 May 2002 19:38:00 -0000 From: XUE To: Subject: gdbserver problem? Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 8bit X-SHIP: 202.96.229.5 X-SW-Source: 2002-05/txt/msg00145.txt.bz2 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 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 />