[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] GDB debugging with threads
Hi Sowmya,
Sorry for the delayed reply, things have been very busy at this end.
Please see my comments below.
Jadda, Sowmya (GE Infrastructure Security) wrote:
> I tried the instructions which you sent me in your previous mail. I got a couple of compile errors during the build process.
>
> In utils.c file in user/gdbserver, in the function "perror_with_name", sys_nerr and sys_errlist are being thrown out as undefined. I fixed this by commenting out those lines. A similar error occurred in linux_low.c.
>
> Finally, I got this to build and when I tried testing it..it was not working as expected...the gdb running on the host doesn't still recognize the threads being created.
I don't think this is going to be a trivial functionality to get
working. A quick scan of the uclinux-dev and gdb list archives suggests
that gdbserver with pthreads can/should work, but often doesn't.
Certainly I didn't see a HOWTO with step-by-step instructions. As you
have seen, simply hacking on the code until it compiles is no guarantee
of functionality.
I would expect to spend a reasonable amount of time (a few full days to
a week) to get this going. Debugging the debugger is never easy. To
start I would chase down all of the email list threads you can find
mentioning uclinux, gdbserver and pthreads. In the gdbserver
application you can enable debug mode so that it dumps the raw gdb
remote protocol packets, this helps to see what gdb is saying to
gdbserver and vice versa.
If I get a chance to look into it I will let you know.
Regards,
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/