linux-mips
[Top] [All Lists]

gdbserver

To: <linux-mips@linux-mips.org>
Subject: gdbserver
From: "Ratin Rahman \(mratin\)" <mratin@cisco.com>
Date: Thu, 28 Jun 2007 13:45:02 -0700
Authentication-results: sj-dkim-1; header.From=mratin@cisco.com; dkim=pass ( sig from cisco.com/sjdkim1004 verified; );
Cc: "Ratin Rahman \(mratin\)" <mratin@cisco.com>
Dkim-signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1917; t=1183063513; x=1183927513; c=relaxed/simple; s=sjdkim1004; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=mratin@cisco.com; z=From:=20=22Ratin=20Rahman=20\(mratin\)=22=20<mratin@cisco.com> |Subject:=20gdbserver |Sender:=20; bh=6svw3SC+t2lkBIbMQnOCYwbt4pNYm/HgdYf7Qzchvvw=; b=dX0gaITO0TwCV/zDPjyJIkwigd/WwrqWfbF1yBrc+GWlp32+HmRGX4CZg1DmyfvuONmPcyGc Vp0r4hdnyv4YVxV+LXy6fhOtu77HKjeDuuyeQtUo4eCWRtxvr2cozx0yJsNobsPlSV5pMnrhZB lcx54dKsuXfDuMt2E6uerXonE=;
In-reply-to: <20070628083725.GA23394@lst.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cda58cb80706260820y4db3eacnae4dff0101852d52@mail.gmail.com> <20070627.013312.25479645.anemo@mba.ocn.ne.jp> <20070627153932.GA6016@lst.de> <20070628.112223.96686654.nemoto@toshiba-tops.co.jp> <20070628083725.GA23394@lst.de>
Sender: linux-mips-bounce@linux-mips.org
Thread-index: Ace5X7Stx5Yc3VyoRzC57j9WjyFsIAAYR/1g
Thread-topic: gdbserver
Anybody had luck with compiling gdbserver for mipsel? I am using x86
based machine running Fedora 2.6.11 kernel, the target device is IDT 434
running Mipsel 2.6.10 kernel. The gcc crosscompiler is mipsel-linux-gcc
and version 3.2.3.

I did a ./configure --host=mipsel-linux-gnu --target=mipsel-linux-gnu
followed by a make. Make failed with the messages: 

/opt/mipseltools/mipsel-linux/sys-include/sys/ptrace.h:33: syntax error
before numeric constant
/opt/mipseltools/mipsel-linux/sys-include/sys/ptrace.h:49: syntax error
before numeric constant
/opt/mipseltools/mipsel-linux/sys-include/sys/ptrace.h:61: syntax error
before numeric constant
/opt/mipseltools/mipsel-linux/sys-include/sys/ptrace.h:94: syntax error
before numeric constant
/opt/mipseltools/mipsel-linux/sys-include/sys/ptrace.h:112: syntax error
before numeric constant
linux-low.c: In function `kill_lwp':
linux-low.c:760: warning: unused variable `tkill_failed'
make: *** [linux-low.o] Error 1
[root@Clearnet gdbserver]# nano
/opt/mipseltools/mipsel-linux/sys-include/sys/ptrace.h
[root@Clearnet gdbserver]# nano
/opt/mipseltools/mipsel-linux/sys-include/sys/ptrace.h


The content of ptrace.h has the enums declared as 

/* Type of the REQUEST argument to `ptrace.'  */
enum __ptrace_request
{
  /* Indicate that the process making this request should be traced.
     All signals received by this process can be intercepted by its
     parent, and its parent can use the other `ptrace' requests.  */
  PTRACE_TRACEME = 0,
<==================================line 33
#define PT_TRACE_ME PTRACE_TRACEME

  /* Return the word in the process's text space at address ADDR.  */
  PTRACE_PEEKTEXT = 1,
#define PT_READ_I PTRACE_PEEKTEXT


..which looks pretty normal to me , anybod yhave any clue? 
Thanks,


Ratin 

<Prev in Thread] Current Thread [Next in Thread>