*BSD News Article 19512


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!wupost!gumby!yale!zip.eecs.umich.edu!news-server.eecs.umich.edu!jdolter
From: jdolter@eecs.umich.edu (James W. Dolter)
Newsgroups: comp.os.386bsd.apps
Subject: Re: recent version (4.x) of gdb
Date: 15 Aug 1993 11:56:04 GMT
Organization: University of Michigan EECS Dept., Ann Arbor, MI
Lines: 36
Message-ID: <JDOLTER.93Aug15075604@sawtooth.eecs.umich.edu>
References: <MCKIM.93Aug11164110@dinah.lerc.nasa.gov>
	<BRENDAN.93Aug11155709@lisa.cygnus.com>
	<1993Aug12.164411.25282@newstand.syr.edu>
	<MCKIM.93Aug15065541@dinah.lerc.nasa.gov>
NNTP-Posting-Host: sawtooth.eecs.umich.edu
In-reply-to: mckim@dinah.lerc.nasa.gov's message of 15 Aug 93 06:55:41

>>>>> Regarding Re: recent version (4.x) of gdb; mckim@dinah.lerc.nasa.gov (Jim McKim) adds:
	mckim> NNTP-Posting-Host: dinah.lerc.nasa.gov


	mckim> I'm using NetBSD-current. I didn't see the problem with NetBSD 0.8 or
	mckim> 386BSD so I'm assuming the problem has something to do with the a.out
	mckim> changes. None of the GNU binutils work either - the problem is in how
	mckim> the libbfd routines read in a.out files. GNU probably needs to
	mckim> recognize NetBSD (0.9+) as a unique configuration type in its
	mckim> configure scripts.
	mckim> --
	mckim> 							    Mci aigh vojs
	mckim> Jim McKim  /  Internet: mckim@lerc.nasa.gov		    gcashvwbu pshhsf hc
	mckim> Phone: +1 216 891 2283  /  Packet: kb8dcr@kb8dcr.ampr.org   rc hvob rsqfmdhwbu
	mckim> 							    fchhsr gwubohifsg..


Not only does the configuration scripts need to identify NetBSD-0.9 but a 
new variant on the a.out format is needed to properly read the a_midmag
field into the generic bfd internal format and write it out when the bfd
file is closed.  This centers around defining SET_MACH_ARCH macro/routine
appropriately and providing a couple of other support routines.

A good start at figuring this out is looking at how the HP a.out format
differs from the standard 32 bit a.out or the SUNOS a.out formats.

I have started playing with it but other deadlines keep interfering.

--
+--------------------------------------------+--------------------------------+
| James W. Dolter                            | Real-Time Computing Laboratory |
| Internet: jdolter@sawtooth.eecs.umich.edu  | The University of Michigan     |
| UUCP:     umich!umeecs!jdolter             | 1301 Beal Ave                  |
| Office:   2222 EECS                        | Ann Arbor, MI 48109-2122       |
| Voice:    (313) 763-5363                   |                                |
+--------------------------------------------+--------------------------------+