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

Re: [microblaze-uclinux] gdb cannot run the application



Ok,
 
I've managed to make it running using the gdb command line.
As far as I understood, the (pretty good) documentation is fine using an application compiled with no optimisation which is not the default case in petalinux template.
 
Regards,
 
Nicho
 
2007/9/12, Benny Chen <bennyc@xxxxxxxxxxxxxx>:
If you are trying to run gdb to debug a user application running on your
microblaze platform then you should be using the microblaze-uclinux-gdb

Have a look at the following documentation.  I have tested it on 2.6 so
it should work.

http://developer.petealogix.com/wiki/UserGuide/Debugging/UserApplications

Note that there are some error with the documentation that it refers to
'mb-uclinux-gdb'  this should be 'microblaze-uclinux-gdb'


Cheers,
B.

Nicho Johns wrote:
> Hi everybody,
>
> I try to setup remote debugging on petalinux-v0.20-rc3 / Linux 2.6
>
> From mb-gdb, I can establish the connection with the target using
> "connect to target" only if the option "Run program" is set.
> The display turns from source to Assembly and displays :
>
>  0x245b8044 <_stext>:  Unable to read memory location 0x245b8044
> - 0x245b8048 <_stext+4>:  Unable to read memory location 0x245b8048
> - 0x245b804c <_stext+8>:  Unable to read memory location 0x245b804c
> - 0x245b8050 <_stext+12>:  Unable to read memory location 0x245b8050
> - 0x245b8054 <_stext+16>:  Unable to read memory location 0x245b8054
> .....
>
> I can read CPU registers ans memory but I cannot run the program.
> Trying to run the program or using "Continue from last stop" option
> results in target no more responding or exiting from gdbserver :
> "Killing inferior"
>
> Any help would be welcome.
>
> Regards,
>
> Nicho
>
___________________________
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/