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]

Remote Debugging on an ARM target


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 conditions.
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=i686-pc-linux-gnu --target=i386-linux"...
(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ée/sortie.


0x00000000 in ?? () <<<<< this one is a little intrigant
and the "Cannot insert breakpoint -2.
 Error accessing memory address 0xdaca: Erreur d'entrée/sortie." too




The source code of the gdb_try is the following:
#include <stdio.h>

main ()
{
int num1, num2, total ;
printf("Enter first number : ");
scanf("%d", &num1);
printf("Enter second number : ");
scanf("%d", &num2);
total = num1 + num2;
printf("\nThe sum is : %d\n", total);
}



Does anyone have an idea about the origin of this problem?

With regards


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