🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1641

Using gdbserver

#1641
From: Lakshmi Gopinath
Date: Tue, 09 Jul 2002 09:48
100 lines
3780 bytes
This is a multi-part message in MIME format.
--------------5C9C9C04DEB24E5BB1FE89AB
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
 charset=us-ascii

Hello all,

I am working on remote debugging using gdb5.2 on linux
2.4.2-2 .

I have a host machine,which is having kernel 2.4.2-2  from
where I run
/gdb "filename"

My target machine is having kernel 2.4.17  and gdb5.2
installed.
I am only specifying the input commands.
Trying to use TCP connection.

host> gdb ./filename
target> gdbserver host:2345 ./filename args
host_gdb> target remote target:2345
host_gdb> b main
It inserts the break point successfully.
host_gdb>c
host_gdb>print argc
It prints the no. of arguments passed to the program
correctly.
host_gdb >c

This setup is working perfectly fine.

But when I am using the machine having kernel 2.4.17
installed as host.
If my host is running with the kernel 2.4.17 and target is
running the kernel 2.4.2-2
then the following is happening.

host> gdb ./filename
target> gdbserver host:2345  ./filename args
host_gdb> target remote target:2345
host_gdb >b main
host_gdb>c
host_gdb=> received SIGILL .Illegal instruction

If I say
host_gdb> r
It  asks  for the current running program to terminate, (y
or n)
If I say "y" it will terminate the gdbserver program.

So I am not able to debug further. I am not even sure that
whether  gdb has loaded the symbol table of filename or not.

In short, the machine with kernel 2.4.2-2 is working
perfectly as a host as well as a target.
But other machines with other kernels are  working only as
targets and not as hosts.

Has somebody ever come across this problem.
I don't think that the kernel version should be a problem as
obviously 2.4.17 is the upgraded version.
But then I am not able to think of something else here.
If u can suggest me the solution to this problem I'll be
really greatful to u.

Rgds
=========================================
Lakshmi Gopinath
Video On Demand Software Team
National Semiconductor
India Design Center
Tel  : 91-80-5253351
E-mail  : lakshmi@malkauns.nsc.com
=========================================


--------------5C9C9C04DEB24E5BB1FE89AB
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename=lakshmi.vcf
Content-Description: Card for Lakshmi Gopinath
Content-Type: text/x-vcard;
 charset=us-ascii;
 name=lakshmi.vcf

begin:vcard 
n:Gopinath;Lakshmi 
tel;fax:91-80-5253374
tel;home:91-80-6521279
tel;work:91-80-5253351
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:lakshmi@malkauns.nsc.com
fn:Lakshmi
end:vcard

--------------5C9C9C04DEB24E5BB1FE89AB--
Technical Details
Message-ID: <3D2AB161.4D077AB4@malkauns.nsc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!cox.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!uunet!lax.uu.net!dfw.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,30d397ae78befe0,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-07-09 02:45:05 PST
x-uunet-gateway: dfw7sosrv11.alter.net from bug-gdb to gnu.gdb.bug; Tue, 9 Jul 2002 09:44:37 GMT
X-Server-Uuid: E73BD8E9-AA59-4517-8F91-DD2FBA670615
Message-ID: <3D2AB161.4D077AB4@malkauns.nsc.com>
Date: Tue, 09 Jul 2002 15:18:17 +0530
From: "Lakshmi Gopinath" <Lakshmi.Gopinath@nsc.com>
Organization: natsem
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
Subject: Using gdbserver
MIME-Version: 1.0
X-WSS-ID: 11346EC31715-12-01
Content-Type: multipart/mixed;
 boundary=------------5C9C9C04DEB24E5BB1FE89AB
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!cox.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!uunet!lax.uu.net!dfw.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb
Sender: bug-gdb-request@mail.gnu.org
Lines: 101