delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/25/12:36:42

Message-Id: <m10G4bV-000S6GC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Dave Bird <dave AT xemu DOT demon DOT co DOT uk>, djgpp AT delorie DOT com
Date: Thu, 25 Feb 1999 14:39:20 +0000
MIME-Version: 1.0
Subject: Re: I just wanted to assemble this old program under NASM....
In-reply-to: <uv4pu3BVSI12EwOl@xemu.demon.co.uk>
References: <m10FicP-000S6rC AT inti DOT gov DOT ar>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019