From: Regis BOSSUT Newsgroups: comp.os.msdos.djgpp Subject: Re: A simple program that works except under GDB... Date: Mon, 24 Mar 1997 09:43:42 +0100 Organization: IEMN - Dépt ISEN - Acoustique Lines: 12 Message-ID: <33363EBE.5CFF@isen.fr> References: NNTP-Posting-Host: hpac1.isen.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eli Zaretskii wrote: > Did you actually tried to add ``__attribute__(packed))''? Because I > think that you are wrong in assuming that NCB is already aligned. Yes, I did it. No change. My guess about alignment was certainly wrong. Have a try: compile and link it with -g switch. Then run it. If you have a LAN card, it should write its MAC address. Run it under GDB without setting any breakpoint and you will get a MAC address of zeroes. /Régis