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

RE: [microblaze-uclinux] Source level debug for Microblaze in Xilinx FPGA.



On Monday, February 05, 2007 9:58 PM Celia Lee wrote:
> This is how I usually invoke mb-gdb for uboot:
> mb-gdb -nw -symbols=u-boot.map u-boot

> -nw option is not necessary. 

Celia, I've tried the same from cygwin shell of EDK (I use 8.1). I also
used the following command to connect to XMD where same u-boot ELF file
has been downloaded:

target remote localhost:1234

BTW, if I don't use -nw option, it runs graphical debugger from EDK,
which doesn't show source at all (Assembly only). From another side,
"-symbols=u-boot.map" doesn't make any difference - I tried both with
and without it.

In the first place, it doesn't show sources, though it provides lines in
the code so it's reasonably simple to see where we are, keeping source
open in some editor:

serial_getc () at serial_xuartlite.c:72
72      serial_xuartlite.c: No such file or directory.
        in serial_xuartlite.c
(gdb) list
67      in serial_xuartlite.c
(gdb) b main_loop
Breakpoint 1 at 0x23fc5638: file main.c, line 383.
(gdb) c
Continuing.

However after arriving to breakpoint next command makes GDB stall:

Breakpoint 1, main_loop () at main.c:383
383     main.c: No such file or directory.
        in main.c
(gdb) n
warning: Remote failure reply: E01

I also tried to use gdb from petalinux distribution, ruinning on real
Linux machine (remote target IP won't be localhost anymore). I could see
source all right, but same hang problem while trying "next" after
breakpoint. I thought it's some networking issue, but on local host
happens exactly the same...

What EDK version are you using?

Best Regards
Leonid.
 

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/