From: Frederic Kwiatkowski <stagedrt@gmail.com>
To: gdb@sourceware.org
Subject: Remote Debugging on an ARM target
Date: Tue, 07 Feb 2006 14:44:00 -0000 [thread overview]
Message-ID: <5fb065d90602070644mf12070bg@mail.gmail.com> (raw)
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
next reply other threads:[~2006-02-07 14:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-07 14:44 Frederic Kwiatkowski [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5fb065d90602070644mf12070bg@mail.gmail.com \
--to=stagedrt@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox