[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] GDB with uClinux
Hi John,
I wanted to briefly recap and then ask a couple more questions:
first, the goal: I'd like to be able to use the XPS software debug environment for debugging my target application running under uClinux on a custom target board.
what's working: I can cross-compile my target application from a RedHat box and take the output file, 'pImage.romfs', and load it into the target memory via TFTP through a tcpip connection. From here I can execute the application, which generally works as designed so far, such as prints to a console, etc...
next steps: My understanding is that I need to include your new (alpha or beta mb) gdbserver application as one of my target applications so it can run on the target and connect to the main GDB running under XPS. I also may need to use a tweaked version of the mb-gdb as well.
questions: Will all the source code for the uClinux distribution, along with my application code need to be loaded into a 'software application' project in XPS? Were you able to find out anymore about the tools I'll need? Has anyone else done this successfully yet, and are there any other resources I can tap?
Thanks again,
Walt White
waltj.white@ge.com
p.s. My current version of the xps gdb tool is:
GNU gdb 5.3 Xilinx EDK 6.3 Build EDK_gmm.10
GDB configuration "--host=i686-pc-cygwin --target=microblaze"
-----Original Message-----
From: owner-microblaze-uclinux@itee.uq.edu.au
[mailto:owner-microblaze-uclinux@itee.uq.edu.au]On Behalf Of White, Walt
J (GE Infrastructure)
Sent: Tuesday, March 08, 2005 2:16 PM
To: microblaze-uclinux@itee.uq.edu.au
Subject: RE: [microblaze-uclinux] GDB with uClinux
Hi John,
I appreciate your response on this. I'm looking into the gdbserver now so I'll be up to speed on it when you send over the newer version, along with the tweaked mb-gdb if needed.
Thanks,
Walt
-----Original Message-----
From: owner-microblaze-uclinux@itee.uq.edu.au
[mailto:owner-microblaze-uclinux@itee.uq.edu.au]On Behalf Of John
Williams
Sent: Monday, March 07, 2005 5:03 PM
To: microblaze-uclinux@itee.uq.edu.au
Subject: Re: [microblaze-uclinux] GDB with uClinux
Hi Walt,
White, Walt J (GE Infrastructure) wrote:
>>My current build/debug process:
>>Edit my application c code and compile it, and the uClinux kernel on my RedHat machine, and then TFTP a pImage.romfs file to the U-Boot bootloader which allows me to then boot the new kernel and run my application.
>>
>>Currently my only debug capability is through printf() to the console. This works, however I'd like to be able to set break points in the c source, step, and examine variables in my application. I've been able to do this using the GDB debugger incorporated in the Xilinx Platform Studio. However, that was for simple applications built on the Windows machine (through cygwin) that I downloaded to the target via the JTAG port, using XPS. I'd like to be able to use this same XPS GDB debugger for my uClinux application and want to know if anyone else has done this and if so, how it is done.
>>
>>I read on http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux that the uClinux kernel essentially must be built in a true linux environment, rather than the cygwin shell that XPS uses. I'm wondering if it may be possible to take the output from my linux build along with the kernel and my application source code, and have the XPS GDB use it for debugging. Has anyone done this or know of a way to use a debugger for applications under uClinux?
We have worked out the basics of debugging user applications with GDB,
but this support has not been fully integrated into the tools, and the
kernel.
The approach is to use an applciation called gdbserver, running on the
microblaze, that loads your target application, and traps it in single
step mode. Then, mb-gdb connects to gdbserve rover ethernet as per
usual (or serial if you want), and off you go.
A few issues - the gdbserver app disitrubted with uclinux-dist is
ancient, and will never work on any targets exception m68knommu. We
have imported a newer version, and integrated microblaze support, how
ever it's not part of the official distribution yet. I will see about
getting an archive for you to try.
The second catch is that I'm pretty sure you'll need a tweaked version
of mb-gdb to do this. Againn, let me refresh my memory on the status of
this and i'll see what I can caome up with.
Rgards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/