Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* asm debug problem
@ 2007-11-06 13:49 Yi Tang
  2007-11-06 14:02 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Yi Tang @ 2007-11-06 13:49 UTC (permalink / raw)
  To: gdb

Hello maintainer,

I have got some trouble using gdb for my source code.

My code, written in asm and compiled by gcc, should be attached to an rtos 
library (ecos) to perform some test. I found it is not possible to debug the 
assemble source code. 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.

Regards,
Tony

Current language:  auto; currently c++
Loading section .rom_vectors, size 0x1390 lma 0x40000000
Loading section .text, size 0x54b8 lma 0x40001390
Loading section .rodata, size 0x218 lma 0x40006848
Loading section .data, size 0x354 lma 0x40006a60
Start address 0x40001208, load size 28084
Transfer rate: 532398 bits/sec, 275 bytes/write.

Breakpoint 1, cyg_user_start () at astest.c:10
Current language:  auto; currently c
0x400013a0 in usr_interrupt_vsr () at 
/ecos-c/Cygwin/ecos/ecos-dtimer/packages/kernel/current/src/common/clock.cxx:85
Current language:  auto; currently c++




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-07  2:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-06 13:49 asm debug problem Yi Tang
2007-11-06 14:02 ` Daniel Jacobowitz
2007-11-07  2:33   ` Yi Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox