Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
gdbserver /gdb use on ARM/XScale help
- 08-05-2005
August 5, 2005, 3:55 pm

I inherited a distribution for an IXP420 Xscale processor and tried to
use gdb without success. This is what I get on the target and on the
host (Debian). I did a search on this and it seems that :
1. I have to apply a patch
2. The cross-compile was not done properly
3. I have to upgrade my gdbserver.
Any insights?
Thanks.
<target> gdbserver :3000 /bin/<app>
Process /bin/<app> created; pid = 211
code at (nil) - (nil), data at (nil)
Remote debugging using :3000
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the
connection.
<host> arm-uclinux-gdb
GNU gdb 6.1
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=arm-uclinux".
(gdb) target remote 192.168.4.1
192.168.4.1: No such file or directory.
(gdb) target remote 192.168.4.1:3000
Remote debugging using 192.168.4.1:3000
Couldn't establish connection to remote target
Reply contains invalid hex digit 59
(gdb)
use gdb without success. This is what I get on the target and on the
host (Debian). I did a search on this and it seems that :
1. I have to apply a patch
2. The cross-compile was not done properly
3. I have to upgrade my gdbserver.
Any insights?
Thanks.
<target> gdbserver :3000 /bin/<app>
Process /bin/<app> created; pid = 211
code at (nil) - (nil), data at (nil)
Remote debugging using :3000
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the
connection.
<host> arm-uclinux-gdb
GNU gdb 6.1
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=arm-uclinux".
(gdb) target remote 192.168.4.1
192.168.4.1: No such file or directory.
(gdb) target remote 192.168.4.1:3000
Remote debugging using 192.168.4.1:3000
Couldn't establish connection to remote target
Reply contains invalid hex digit 59
(gdb)

Re: gdbserver /gdb use on ARM/XScale help

are you talking about gdbserver from .deb packages ?
If you download GDB 6.3, you should be able to cross compile it yourself for the
arm-linux target. No other patches, but you do need gdbserver 6.3 too.
I use that for the IXP425, and gdb/gdbserver runs fine.
regards,
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: snipped-for-privacy@snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: snipped-for-privacy@snapgear.com
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » Does MontaVista/Timesys Embedded OS can be loaded on Intel PC?.
- — Next thread in » Embedded Linux
-
- » Kernel panic while mounting local filesystem
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Sheesh
- — The site's Newest Thread. Posted in » Electronics Repair
-
- » По моему это гениально
- — The site's Last Updated Thread. Posted in » Microcontrollers (Russian)
-