From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8562 invoked by alias); 25 Apr 2002 23:04:52 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8555 invoked from network); 25 Apr 2002 23:04:51 -0000 Received: from unknown (HELO neptune.kirkland.local) (12.104.72.61) by sources.redhat.com with SMTP; 25 Apr 2002 23:04:51 -0000 Received: by neptune.kirkland.local with Internet Mail Service (5.5.2650.21) id ; Thu, 25 Apr 2002 16:04:49 -0700 Message-ID: <43CB1396676FD4119F03001083FD2994F5F15D@neptune.kirkland.local> From: "Kevin \"Squail\" Endres" To: "'gdb@sources.redhat.com'" Subject: gdbserver and arm - please help Date: Thu, 25 Apr 2002 16:04:00 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C1ECAD.991AAB66" X-SW-Source: 2002-04/txt/msg00449.txt.bz2 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C1ECAD.991AAB66 Content-Type: text/plain; charset="iso-8859-1" Content-length: 951 i am trying to get gdbserver working on the arm (through applying various patches - i can get it to build correctly - but it doesnt function as i would expect) i386 environment: gdb-5.1.1 crosstargeted for arm binaries (i can read the symbol info from the binaries correctly - it works as expected) arm: gdbserver built for the arm target with the attached patches applied (i built the full gdb targeted and hosted on the arm - it works correctly on the arm) - i also edited config.h in the gdb dir to define the NM file (config/arm/nm-linux.h) - it compiles without error. when i run a program under gdbserver and target remote via gdb (using TCP) - the connection is formed but i get: 0x40002520 in ??() echoed to gdb. if i do 'info stack' in gdb i get: #0 0x40002520 in ??() #1 0x0000000 in ??() in gdb if i 'step' or 'next': 'Cannot find bounds of current function' kill terminates the program as expected. Any help is appreciated! :]k ------_=_NextPart_000_01C1ECAD.991AAB66 Content-Type: application/octet-stream; name="low-linux.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="low-linux.patch" Content-length: 1060 *** insight.orig/insight-5.1.1/gdb/gdbserver/low-linux.c Wed Jul 25 22:23:5= 8 2001=0A= --- insight/insight-5.1.1/gdb/gdbserver/low-linux.c Tue Apr 23 18:07:17 200= 2=0A= ***************=0A= *** 24,27 ****=0A= --- 24,28 ----=0A= #include "frame.h"=0A= #include "inferior.h"=0A= + #include "tm.h"=0A= =20=20=0A= #include =0A= ***************=0A= *** 263,266 ****=0A= --- 264,289 ----=0A= return (blockend + 4 * regmap[regnum]);=0A= }=0A= + //JOE: Add this to enable compilation on arm=0A= +=20=0A= + #elif defined(ARM_GNULINUX_TARGET)=0A= + static void=0A= + initialize_arch (void)=0A= + {=0A= + return;=0A= + }=0A= +=20=0A= + int=0A= + arm_linux_register_u_addr (int blockend, int regnum)=0A= + {=0A= + return blockend + REGISTER_BYTE (regnum);=0A= + }=0A= +=20=0A= + #if !defined (REGISTER_U_ADDR)=0A= + #define REGISTER_U_ADDR(addr,blockend,regno) \=0A= + addr =3D arm_linux_register_u_addr (blockend, regno)=0A= + #endif=0A= +=20=0A= + //END JOE ADD=0A= +=20=0A= #elif defined(IA64_GNULINUX_TARGET)=0A= #undef NUM_FREGS=0A= ------_=_NextPart_000_01C1ECAD.991AAB66 Content-Type: application/octet-stream; name="tm-linux.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="tm-linux.patch" Content-length: 592 *** insight.orig/insight-5.1.1/gdb/config/arm/tm-linux.h Tue Sep 5 20:39:1= 1 2000=0A= --- insight/insight-5.1.1/gdb/config/arm/tm-linux.h Tue Apr 23 18:12:07 200= 2=0A= ***************=0A= *** 158,160 ****=0A= --- 158,165 ----=0A= #define SIGCONTEXT_REGISTER_ADDRESS arm_linux_sigcontext_register_address= =0A= =20=20=0A= + //JOE Add this as described in the patch to support arm compilation=0A= + /* Define to support ARM Linux in gdbserver/low-linux.c. */=0A= + #define ARM_GNULINUX_TARGET=0A= + #define U_REGS_OFFSET 0=0A= + #undef HAVE_SYS_REG_H=0A= #endif /* TM_ARMLINUX_H */=0A= ------_=_NextPart_000_01C1ECAD.991AAB66--