From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26034 invoked by alias); 7 Jan 2008 10:31:10 -0000 Received: (qmail 26025 invoked by uid 22791); 7 Jan 2008 10:31:10 -0000 X-Spam-Check-By: sourceware.org Received: from mail.net.t-labs.tu-berlin.de (HELO mail.net.t-labs.tu-berlin.de) (130.149.220.252) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Jan 2008 10:30:45 +0000 Received: from [130.149.220.17] (crow.net.t-labs.tu-berlin.de [130.149.220.17]) by mail.net.t-labs.tu-berlin.de (Postfix) with ESMTP id 42D9F7012D93 for ; Mon, 7 Jan 2008 11:30:43 +0100 (CET) Message-ID: <4781FF52.8080905@net.t-labs.tu-berlin.de> Date: Mon, 07 Jan 2008 10:31:00 -0000 From: =?ISO-8859-1?Q?Harald_Schi=F6berg?= User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: gdb@sourceware.org Subject: SIGILL on gdbserver/ARM/uclibc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00032.txt.bz2 I know that this issue is on the list every other year, but I found no working solution for my problem. I'm currently trying to run gdb/gdbserver on OpenWRT/ARM (uclibc-0.9.29/gcc-4.1.2, tried gdb 6.3 and 6.7.1, target is xscale (armv5te), host is ubuntu x86_64, OpenWRT builds gdb with gdb_cv_func_sigsetjmp=yes \ $(PKG_BUILD_DIR)/configure \ --prefix=$(TOOLCHAIN_DIR) \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_HOST_NAME) \ --target=$(REAL_GNU_TARGET_NAME) \ $(DISABLE_NLS) \ --without-uiout \ --disable-tui --disable-gdbtk --without-x \ --without-included-gettext \ --enable-threads \ # --disable-gdbmi ## this was commented out for 6.7.1 to compile I'm getting SIGILL after a breakpoint on the target. some session-log from 6.7.1: (gdb) target remote 172.17.2.190:4000 Remote debugging using 172.17.2.190:4000 warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. 0x400009d0 in ?? () (gdb) b main Note: breakpoint 1 also set at pc 0x8570. Breakpoint 2 at 0x8570: file hello.c, line 6. (gdb) c Continuing. Program received signal SIGILL, Illegal instruction. 0x00008574 in main () at hello.c:6 6 for (i=0; i< 10; i++) (gdb) s Program terminated with signal SIGILL, Illegal instruction. The program no longer exists. (gdb) show osabi The current OS ABI is "auto" (currently "GNU/Linux"). The default OS ABI is "GNU/Linux". (gdb) set osabi GNU/Linux (gdb) show osabi The current OS ABI is "GNU/Linux". The default OS ABI is "GNU/Linux". (gdb) target remote 172.17.2.190:4000 Remote debugging using 172.17.2.190:4000 warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. 0x400009d0 in ?? () (gdb) b main Note: breakpoints 1 and 2 also set at pc 0x8570. Breakpoint 3 at 0x8570: file hello.c, line 6. (gdb) c Continuing. Program received signal SIGILL, Illegal instruction. 0x00008574 in main () at hello.c:6 6 for (i=0; i< 10; i++) (gdb) s breakpoint.c:7845: internal-error: insert_single_step_breakpoint: Assertion `single_step _breakpoints[1] == NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y -- Harald Schiöberg Technische Universität Berlin | T-Laboratories | FG INET www: http://www.net.t-labs.tu-berlin.de Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47