This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Debugging information in *.S files


Rosimildo daSilva wrote:
> >What debugging information would you expect to be in a hand-written
> >assembler file?
> 
> I'd like to see the usual stuff that you need to debug a
> module, such as filename, and line numbers associated with
> a particular symbol. Basically, be able to set breakpoints
> and step through the code with GDB, even if in one hand-written
> assembly module.

Normally there isn't demand for such a thing - the generated assembly
corresponds nearly one-to-one with the assembly in the file, so stepi is
sufficient.

I did see this assembler option though:

       --gstabs
              Generate  stabs  debugging information for each assembler
line.  This may help debugging assembler code, if the debugger can handle
it.

I haven't tried it though.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]