home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
bbs
/
gnu
/
gdb-4.12-src.lha
/
src
/
diffs
/
gdb-4.12-README
next >
Wrap
Internet Message Format
|
1994-02-15
|
3KB
Xref: majipoor.cygnus.com comp.sys.amiga.programmer:14086
Newsgroups: comp.sys.amiga.programmer
Path: majipoor.cygnus.com!fnf
From: fnf@cygnus.com (Fred Fish)
Subject: GDB 4.12 executable for amigados
Message-ID: <CL9C71.E5I@cygnus.com>
Organization: Cygnus Support, Mountain View, CA
Date: Tue, 15 Feb 1994 08:42:36 GMT
Lines: 52
I got a little tired of working on CD-ROM stuff today, so I decided to
spend a few hours and take the first step to getting an AmigaDOS gdb
port. After some hacking, I was able to generate a working gdb 4.12
AmigaDOS executable that could load and examine a.out and ELF files
for a couple of different CPU's (m68k, i486). It could disassemble
m68k instructions, print the types of variables, set breakpoints, list
lines in the source code, etc. In short, about everything you would
expect to be able to do without having to actually execute the program
being debugged.
The diffs to gdb 4.12 are about 32Kb, a little too large to just post,
so I will email them to anyone that asks for them. It's possible that
they could actually be useful to someone who might want to do cross
debugging to another (non-AmigaDOS) system using an Amiga host. With
a minimal amount of work you should be able to generate a cross
debugger for embedded applications, for example.
The three main things that still need to be done to get a native
AmigaDOS debugger include:
o Add support to the BFD library for reading AmigaDOS
executables and extracting debug data (stabs or DWARF)
from the debug section. Probably a week or less of work
for someone already somewhat familiar with BFD.
o Write appropriate AmigaDOS specific support for doing
the things that ptrace() or /proc normally handle, such
as read/write the inferior address spaces, control
execution of the inferior, etc. Several weeks of work?
o Configure and test gcc support for generating stabs-in-hunk
or DWARF-in-hunk format ("hunk" refering to the AmigaDOS
executable format). Since there is already support for
things like stabs-in-ELF, this should be fairly easy.
Add similar support in gdb for finding and reading the
debug info.
o Modify the port of GNU ld to put the stabs/DWARF debug
info into the appropriate AmigaDOS executable file section.
To generate you own executable you will need my diffs, the FSF
gdb-4.12.tar.gz file, a fairly robust shell environment for
configuring (the one on my DEC CD-ROM should work fine) with a working
sh, patch, sed, and various other UNIXish stuff. Just apply the diffs
with patch, configure as "configure amigados", and compile away.
Any volunteers?
-Fred