Tiny Core Linux

Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: hiro on January 15, 2015, 06:01:51 AM

Title: gdb for tc6
Post by: hiro on January 15, 2015, 06:01:51 AM
I've been using gdb on tc4 before, would be really happy about a version for tc 6 if it's not too much hassle.

Thanks
Title: Re: gdb for tc6
Post by: Juanito on January 15, 2015, 06:15:29 AM
does the tc-4.x version of gdb work on tc-6.x?
Title: Re: gdb for tc6
Post by: hiro on January 15, 2015, 10:26:40 AM
no, libtinfo.so.5 which used to be in ncurses-dev is missing.
Title: Re: gdb for tc6
Post by: Lee on January 15, 2015, 04:58:55 PM
I had an app that needed libtinfo.so.5 and as a quick and dirty workaround, I loaded ncursesw.tcz and symlinked libtinfow.so.5 as libtinfo.so.5 and it worked.  Not the cleanest solution, but easy.  ymmv.    :)
Title: Re: gdb for tc6
Post by: hiro on January 17, 2015, 10:18:44 AM
Thanks for this suggestion, Lee, this way it works great on tc6 :)
Title: Re: gdb for tc6
Post by: kmhill on February 02, 2015, 10:29:47 PM
Uhh... I'm looking for gdb for TC6 and I'm a bit surprised that it's not in the repository. Besides the suggested hack, I'm wondering if there has been any progress?
Title: Re: gdb for tc6
Post by: Juanito on February 03, 2015, 01:20:56 AM
I'll try to have a look at it this morning.
Title: Re: gdb for tc6
Post by: Juanito on February 03, 2015, 02:21:09 AM
gdb from the tc-5.x repo works with the updated ncurses in the tc-6.x repo, so gdb copied to the tc-6.x repo
Title: Re: gdb for tc6
Post by: kmhill on February 05, 2015, 09:22:45 PM
Thanks so much, looks like things are partway there... Just pulled the gdb that you uploaded to the T6 repo. In starting gdb from the command line I see an error that the shared library libtinfo.so.5 could not be loaded as it could not be found.

On another note, just before I found your note, after several tries, I was able to build gdb-7.8.2 from source... I used a bash shell to do the build. I remembered that compiletc loads the build tools, I obtained the texinfo and ncurses packages from the TC6 repo. I had ncurses install onboot.

I'm a bit suspicious of what I have so I built a simple hello world program and see it in the command line version of gdb which is encouraging. I also gave the gdb text-user interface a try. While it doesn't immediately show the source, right after I hit return, the source showed right up... Anyone have a favorite graphical tool for use with gdb?

I have my TC system in a USB memory stick and built gdb there, so for now I can do a "make install" but that takes some time. I'm not sure how to package that up...
Title: Re: gdb for tc6
Post by: Rich on February 05, 2015, 09:31:44 PM
Hi kmhill
Quote
I'm not sure how to package that up...
Information on building extensions can be found here:
http://wiki.tinycorelinux.net/wiki:creating_extensions
Title: Re: gdb for tc6
Post by: kmhill on February 05, 2015, 09:42:43 PM
Thanks, I'll take a look at that
Title: Re: gdb for tc6
Post by: Juanito on February 05, 2015, 11:44:19 PM
In starting gdb from the command line I see an error that the shared library libtinfo.so.5 could not be loaded as it could not be found.

It sounds like you didn't update the ncurses extension and reboot?

..but please go ahead with the updated extension anyway.