🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

4 total messages Started by meissner Thu, 22 Feb 1990 23:13
Re: gdb 'bugs' (enhancement requests?) and a patch...
#857
Author: meissner
Date: Thu, 22 Feb 1990 23:13
47 lines
2859 bytes
| From: pcg@aber-cs.UUCP (Piercarlo Grandi)
| Newsgroups: gnu.gdb.bug
| Summary: You could put extra COFF debug information in a section...
| Date: 22 Feb 90 14:53:33 GMT
| Reply-To: pcg@cs.aber.ac.uk (Piercarlo Grandi)
| Distribution: gnu
| Organization: Dept of CS, UCW Aberystwyth
| 	(Disclaimer: my statements are purely personal)
| 
| In article <MEISSNER.90Feb19125329@curley.osf.org> meissner@osf.org (Michael Meissner) writes:
|   
|   When I worked at Data General, I maintained that the "C" in COFF meant
|   crippled, and not common, mostly because of the limitations of the
|   debug format.
| 
| We have already discussed some of this in the G++ groups, because the problem
| is much worse for it. I think that, waiting for ELF, COFF can still be
| used if oen is prepared to do a hack similar to that used for the AOUT
| format. In AOUT the debugging information is emitted as simple strings, and
| the native AOUT debug format is practically bypassed.

(Un)forturnately, ELF does not define a standard debug format.  The
people at Data General who looked into it, could not find anything in
the specs about it (they finally had to resort to reading the code for
the SDB rewrite in C++).  Evidently, it was felt that the debug format
was a private choice that the compiler and debugger made.  88Open and
possibly other vendors looking at going to System V.4 also made the
same choice.

As much as I detest the COFF debug format, I believe that a
standardized debug format is useful, in that it allows you to intermix
compiler A with debugger B.

| In COFF you could easily (very easily) use a section to hold debug
| tables in whatever format. This section could be something like the .comment
| section that is already customary with COFF executables (and that often
| munches up a lot of space in them -- use 'mcs -d' as well as 'strip' ...).
| I actually feel that using the .comment section would be fine.

On System V systems, .comment is not a good idea, since #ident strings
go in there, and a debugger might find it hard to distinguish where
the ident strings end for a module, and other modules debug info.

Note that on a Decstation, which uses the MIPS 1.31 compiler tools,
the assembler gives you no way using other sections except for the
default .text/.data/.sdata/.rdata/.sbss/.bss sections.  I have toyed
with doing this for GCC on the Decstation.
gdb 'bugs' (enhancement requests?) and a patch...
#860
Author: Jim Kingdon
Date: Sat, 24 Feb 1990 08:39
31 lines
1941 bytes
    As much as I detest the COFF debug format, I believe that a
    standardized debug format is useful

Well, let me point out that GNU has a standardized debug format: BSD
a.out executables with dbx symbols.  While we have agreed in some
cases (e.g. GDB) to merge COFF support into GNU software, COFF support
isn't important to us and we put little effort into maintaining it.
On systems with COFF kernels, you can use BSD executables with COFF
encapsulation.

Some hybrid which uses COFF, but with debug tables in a separate
section or some such, might be possible.  The advantage would be you
can use the system binutils and assembler.  But if you port (if not
done already) GNU binutils and assembler to your machine, then you
have source to the utilities, can fix them if broken, and also get
whatever level of support is provided by the FSF and whoever else is
using the GNU utilities.

So getting encapsulation working might involve some work such as
porting the GNU utilities (should be easy except the assembler, which
shouldn't be terrible), but on the other hand, getting COFF support in
GDB working well (and/or maintaining it as GDB and/or COFF evolve) is
also work.

I will admit that dbx symbols could be better documented.  dbxread.c
in GDB and dbxout.c in GCC are (as source code goes anyway) reasonably
legible, however.

Object file and debug formats have both political and technical
aspects.  I think GNU/BSD format beats COFF on both.
Re: gdb 'bugs' (enhancement requests?) and a patch...
#869
Author: Mark H. Colburn
Date: Wed, 28 Feb 1990 13:45
32 lines
2009 bytes
In article <9002240839.AA21345@pogo> kingdon@AI.MIT.EDU (Jim Kingdon) writes:
>Well, let me point out that GNU has a standardized debug format: BSD
>a.out executables with dbx symbols.  While we have agreed in some
>cases (e.g. GDB) to merge COFF support into GNU software, COFF support
>isn't important to us and we put little effort into maintaining it.
>On systems with COFF kernels, you can use BSD executables with COFF
>encapsulation.
>
>Object file and debug formats have both political and technical
>aspects.  I think GNU/BSD format beats COFF on both.

I wonder if anyone at FSF has seen the specification for ELF, the new
loader format that is going to be used by AT&T and others.  This new
format seems to cure a number of the problems associate with COFF.

The problem is that BSD is becoming a rarer beast, what with CSRG
slowly backing out of the arena and the formation of UI and OSF.

The problem that I see with using the ecapsulation method is that
soon, a majority of the machines will have to encapsulate their object
files.  This would be unwieldy, inefficient and moderately annoying.

For the time being the solution is fine, however as time marches on it
may become more and more of a pain.



-- 
Mark H. Colburn                     If you don't make money off of it,
Open Systems Architects, Inc.	    it had better be either a religious
mark@Minnetech.MN.ORG		    experience or a hobby. 
							- Lance Cooper
Re: gdb 'bugs' (enhancement requests?) and a patch...
#872
Author: Peter R. Ham
Date: Wed, 28 Feb 1990 19:15
9 lines
1026 bytes
Have you seen the specification of ELF? What's it like?
Is any documentation of it publicly available? Are there
any shipping systems using it that one could borrow
the documentation from?
Peter
--
Peter Ham			PO Box 3430	(h)(415) 322-4390
MS Computer Science Student	Stanford, CA	ham@cs.stanford.edu
Stanford University 		94309		(o)(415) 723-2067
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads