2008-06-30 09:39:52     Debugging assembly code using eclipse

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-06-30 09:39:52     Debugging assembly code using eclipse

Juhi Sinha (INDIA)

Message: 58121   

 

Below is the asm code we used :

 

.global _main;

_main:

r0.l=2;

r1.h=5;

r4.l=r0.l+r1.h(s);

nop;

_main.end:

 

 

When we tried to debug a project which was  build using eclipse (Blackfin FLAT Assembler),we

 

got the following error messages:

 

************************************************************************************************

 

(gdb) target remote 10.7.133.73:3456

Remote debugging using 10.7.133.73:3456

0x0048a044 in _stext ()

(gdb) break main

Breakpoint 1 at 0x48a152

(gdb) next

Single stepping until exit from function _stext,

which has no line number information.

__uClibc_main (main=0x1c1f64, argc=1896928, argv=0x48bf80,

    app_init=0x48a530 <_init>, app_fini=0x48a542 <_fini>, rtld_fini=0,

    stack_end=0x1dff9b) at libc/misc/internals/__uClibc_main.c:279

279     libc/misc/internals/__uClibc_main.c: No such file or directory.

        in libc/misc/internals/__uClibc_main.c

(gdb) continue

Continuing.

 

Breakpoint 1, *___GI___uClibc_fini ()

    at libc/misc/internals/__uClibc_main.c:257

257     in libc/misc/internals/__uClibc_main.c

(gdb) next

250     in libc/misc/internals/__uClibc_main.c

 

(gdb) continue

Continuing.

 

Breakpoint 1, *___GI___uClibc_fini ()

    at libc/misc/internals/__uClibc_main.c:257

257     in libc/misc/internals/__uClibc_main.c

*************************************************************************************************************

 

what can be the problem?

QuoteReplyEditDelete

 

 

2008-06-30 09:51:28     Re: Debugging assembly code using eclipse

Mike Frysinger (UNITED STATES)

Message: 58124   

 

if you dont include debug information, then you cant debug things

 

you need to use -g when running the compiler driver (bfin-...-gcc)

Attachments

    Outcomes