This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
gdbserver porting problem- strongarm
- To: gdb at sourceware dot cygnus dot com
- Subject: gdbserver porting problem- strongarm
- From: =?EUC-KR?B?udrAsbyu?= <yspark at astonlinux dot com>
- Date: Mon, 18 Jun 2001 17:15:21 +0000
- Organization: dotmxhs
- Reply-To: yspark at astonlinux dot com
I'm having problems building gdbserver for gdb-5.0.
Target machine is strong-arm SA1110.
using arm-linux-gcc 2.95.2 cross-compiler , 2.4.0 kernel
To allow gdbserver to configure and build on x86 Linux and
ARM Linux, I applied file "gdbserver.patch(scott)".
building gdb engine
./configure --target=arm-linux
make
make install
building gdbserver
../../configure --target=arm-liux
make CC=arm-linux-gcc
error occured:
low-linux.c:42: sys/reg.h:?? ???? ????? ??
what is problem????
++++++++++++++++++++++++++++++++++++++
I delete sys/reg.h to building a gdbserver
/*
#ifdef HAVE_SYS_REG_H
#include <sys/reg.h>
#end if
*/
gdbserver remote debugging testing
root:> gdbserver 192.168.2.89:2345 test
Process test created;
pid = 59
reading register 0: Input/output error
Exiting
insert debugging message in low-linux.c
fetch_register(int regno)
{
errno=0;
ptrace() function
fprintf(stdout,"errno=%d\n",errno); // errno=5
(if errno!=0)
error_hadling
}
What is Wrong?
Park