Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Remote Debugging on an ARM target
@ 2006-02-07 14:44 Frederic Kwiatkowski
  2006-02-07 14:49 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: Frederic Kwiatkowski @ 2006-02-07 14:44 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-02-07 16:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-07 14:44 Remote Debugging on an ARM target Frederic Kwiatkowski
2006-02-07 14:49 ` Daniel Jacobowitz
2006-02-07 15:06   ` Frederic Kwiatkowski
2006-02-07 15:10     ` Daniel Jacobowitz
2006-02-07 15:16       ` Frederic Kwiatkowski
2006-02-07 16:06         ` Frederic Kwiatkowski
2006-02-07 16:08           ` Daniel Jacobowitz
2006-02-07 16:14             ` Frederic Kwiatkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox