gdbserver porting problem- strongarm

박윤석 yspark@astonlinux.com
Mon Jun 18 01:16:00 GMT 2001


 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



More information about the Gdb mailing list