WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gdb for tc6  (Read 3501 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
gdb for tc6
« 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: gdb for tc6
« Reply #1 on: January 15, 2015, 06:15:29 AM »
does the tc-4.x version of gdb work on tc-6.x?

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: gdb for tc6
« Reply #2 on: January 15, 2015, 10:26:40 AM »
no, libtinfo.so.5 which used to be in ncurses-dev is missing.

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: gdb for tc6
« Reply #3 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.    :)
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: gdb for tc6
« Reply #4 on: January 17, 2015, 10:18:44 AM »
Thanks for this suggestion, Lee, this way it works great on tc6 :)

Offline kmhill

  • Jr. Member
  • **
  • Posts: 64
Re: gdb for tc6
« Reply #5 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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: gdb for tc6
« Reply #6 on: February 03, 2015, 01:20:56 AM »
I'll try to have a look at it this morning.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: gdb for tc6
« Reply #7 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

Offline kmhill

  • Jr. Member
  • **
  • Posts: 64
Re: gdb for tc6
« Reply #8 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...
« Last Edit: February 05, 2015, 09:40:15 PM by kmhill »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11581
Re: gdb for tc6
« Reply #9 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

Offline kmhill

  • Jr. Member
  • **
  • Posts: 64
Re: gdb for tc6
« Reply #10 on: February 05, 2015, 09:42:43 PM »
Thanks, I'll take a look at that

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14794
Re: gdb for tc6
« Reply #11 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.