Re: asm debug problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yi Tang writes:
 > Hello maintainter,
 > 
 > I have got some trouble using gdb for my assemble source code. It seems like 
 > some gcc link problem.
 > 
 > My code, written in asm and compiled by gcc, should be attached to an rtos
 > library (ecos) to perform some test.  However, I found it is not possible to 
 > debug the assemble source code under gdb. My assemble code, to build the 
 > function (usr_interrupt_vsr()), is in a separate file called uivsr.S. And it 
 > is linked to the OS through a head file. However, when I run the gdb, it 
 > goes to some other file in OS kernel, the clock.cxx (also wrong line num, 
 > I'm pretty sure no such function in this file). And the language is set to 
 > C++. I also tried gas as assembler, same situation.
 > 
 > Following is the snapshot, hope you guys can give me some hints.

You haven't really given us enough information.

Firstly, does debugging usually work on your platform?

Does your platform use DWARF debuginfo?  What does

objdump -W <file>.o

do?

What *exactly* was the command you used to assumble your file?

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux