🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #301

cross debugging with gdb

#301
From: Neil Smithline
Date: Thu, 19 Oct 1989 14:02
36 lines
2211 bytes
I have gdb working as a remote debugger for an experimental operating
system.  This involved writing a "debugging stub" on the remote
machine and modifying the file remote.c to communicate properly with
my debugging stub.  This was working between a Sun 3 and our BBN
Butterfly which contains MC68020 chips.  Everything worked fine until
we recently upgraded most of our machines from Sun 3's to Sun 4
Sparcstations.  I would like to be able to run gdb on the Sun 4
Sparcstations and have it debug the code on the MC68020's.  This means
that it must use know about the Sun'3 object file format (the
butterfly used an object file format compatible with that of the Sun
3's), the Sun 3 architecture and the such.  I do NOT care if this
version of gdb can debug local, Sun 4 programs as long as it works for
the older, Sun 3 style programs.

What I am looking for most of all is an existing version of gdb that
already does this, but in the event that this does not exist, I would
like 
	1) information from anyone who has had gdb cross-debugging -
especially between a Sparcstation and a Sun 3 but any experience would
be helpful.
	2) any advice people have on doing this (eg: what include
files I need from the Sun 3, what code to modify, etc...)
	3) any other help that someone could offer (eg: "For just
$23.95 you can buy a commercial product that does all this and more.")

Any help would be appreciated - Thanks - Neil

Neil Smithline
ARPA:    smithln@cs.rochester.edu
UUCP:    ..!rutgers!rochester!smithln 
Mail:    CS Dept., University of Rochester, Rochester NY 14627
-- 
Neil Smithline
ARPA:    smithln@cs.rochester.edu
UUCP:    ..!rutgers!rochester!smithln 
Mail:    CS Dept., University of Rochester, Rochester NY 14627
Technical Details
Message-ID: <1989Oct19.140239.22293@cs.rochester.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!smithln

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!smithln
From: smithln@honeydew.cs.rochester.edu (Neil Smithline)
Newsgroups: gnu.gdb.bug
Subject: cross debugging with gdb
Message-ID: <1989Oct19.140239.22293@cs.rochester.edu>
Date: 19 Oct 89 14:02:39 GMT
Sender: smithln@cs.rochester.edu (Neil Smithline)
Reply-To: smithln@honeydew.cs.rochester.edu (Neil Smithline)
Organization: University of Rochester
Lines: 36