Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Dave Bird , djgpp AT delorie DOT com Date: Thu, 25 Feb 1999 14:39:20 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: I just wanted to assemble this old program under NASM.... In-reply-to: References: X-mailer: Pegasus Mail for Windows (v2.54) Reply-To: djgpp AT delorie DOT com Dave wrote: > >RHIDE 1.4.7 can debug assembler with the dissasembler window. If you want to > >step in the .S file you'll need to add debug information to this file by > >hand. > > Yuck, that is truly awful --how do I add the debug information by hand?? > (either how to do it,or what webpages/infos I must read to find out how) Look in the info documents for gas, as and gcc (you can read it from RHIDE and they will look like Borland helps). Additionally you can try using the -S switch to see the assembler output of the compiler and learn how the debug information is added. > Is there any way to do it which fits more easily and sensibly with > the DJGPP way of doing things...... would it have debug info .S if it > were an AS file in backwards-format assembler? if the assembly code > were inlined into the C program? or is there simply no way ever > it will automatically add the debug info to the assembler code? There is not automatic way. Inline assembler is pasted in the assembler output "AS-IS", nothing is added or removed. And without debug information you can't step in the sources, only in the disassembler window. The only way (and I really don't suggest using it) is inline assembler where each assembler line is a asm("..."); statement. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(5411) 4759 0013