From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8650 invoked by alias); 7 Feb 2006 14:44:51 -0000 Received: (qmail 8641 invoked by uid 22791); 7 Feb 2006 14:44:51 -0000 X-Spam-Check-By: sourceware.org Received: from xproxy.gmail.com (HELO xproxy.gmail.com) (66.249.82.198) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Feb 2006 14:44:49 +0000 Received: by xproxy.gmail.com with SMTP id t11so984322wxc for ; Tue, 07 Feb 2006 06:44:47 -0800 (PST) Received: by 10.70.92.1 with SMTP id p1mr7925007wxb; Tue, 07 Feb 2006 06:44:47 -0800 (PST) Received: by 10.70.69.11 with HTTP; Tue, 7 Feb 2006 06:44:47 -0800 (PST) Message-ID: <5fb065d90602070644mf12070bg@mail.gmail.com> Date: Tue, 07 Feb 2006 14:44:00 -0000 From: Frederic Kwiatkowski To: gdb@sourceware.org Subject: Remote Debugging on an ARM target MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00042.txt.bz2 Hello all I'm currently trying to debug an application that run on an ARM9 (with Linux) target with gdb 6.3 So i've built gdbserver to run on the arm-linux. Next i've built gdb for my host (i386-linux) The problem is that I've got something strange on my host once i'm connected to the target: [root@srv bin]# ./i386-linux-gdb /home/frk/essai_gdb/essai_gdb GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=3Di686-pc-linux-gnu --target=3Di386-linu= x"... (gdb) target remote 192.168.0.228:2345 Remote debugging using 192.168.0.228:2345 0x00000000 in ?? () (gdb) break main Breakpoint 1 at 0x84c0: file essai_gdb.c, line 4. (gdb) continue Continuing. Warning: Cannot insert breakpoint -2. Error accessing memory address 0xdaca: Erreur d'entr=E9e/sortie. 0x00000000 in ?? () <<<<< this one is a little intrigant and the "Cannot insert breakpoint -2. Error accessing memory address 0xdaca: Erreur d'entr=E9e/sortie." too The source code of the gdb_try is the following: #include main () { int num1, num2, total ; printf("Enter first number : "); scanf("%d", &num1); printf("Enter second number : "); scanf("%d", &num2); total =3D num1 + num2; printf("\nThe sum is : %d\n", total); } Does anyone have an idea about the origin of this problem? With regards