WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: GDB for tc 2.x has wrong libthread_db  (Read 3315 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
GDB for tc 2.x has wrong libthread_db
« on: October 04, 2009, 06:41:27 AM »
GDB gives an error about non-matching libpthread (base, 2.9) and libthread_db (extension, 2.3.6). Removes the ability to debug threads.

Please update the gdb extension for TC 2.x.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: GDB for tc 2.x has wrong libthread_db
« Reply #1 on: October 04, 2009, 07:11:16 AM »
In the meantime, you can get libthread_db from glibc_add_libs if needed.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: GDB for tc 2.x has wrong libthread_db
« Reply #2 on: October 19, 2009, 08:06:27 AM »
I've removed the wrong libthread_db from the extension and it seems to work fine with glibc_add_libs as a dep.
« Last Edit: October 20, 2009, 06:28:26 AM by Juanito »

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: GDB for tc 2.x has wrong libthread_db
« Reply #3 on: November 17, 2009, 11:23:20 PM »
Thanks for that.

Offline TCU123

  • Newbie
  • *
  • Posts: 2
Re: GDB for tc 2.x has wrong libthread_db
« Reply #4 on: November 05, 2012, 08:05:19 AM »
Sorry for refreshing the old topic. I downloaded the very last tc and the problem seems to appear again. Does anybody know anything about it?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: GDB for tc 2.x has wrong libthread_db
« Reply #5 on: November 05, 2012, 08:08:23 AM »
What error message do you get when you run gdb from a terminal window?

Is glibc_add_libs (for the appropriate version of tc) loaded?

Offline TCU123

  • Newbie
  • *
  • Posts: 2
Re: GDB for tc 2.x has wrong libthread_db
« Reply #6 on: November 05, 2012, 08:37:50 AM »
Unable to find libthread_db matching inferior's thread library, thread debugging will not be available
tc 4.6.2
gdb 7.2
libthread_db-1.0.so and libthread_db.so.1 in glibc_add_libs

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: GDB for tc 2.x has wrong libthread_db
« Reply #7 on: November 05, 2012, 08:56:31 AM »
Just to double-check - are you sure you have glibc_add_libs from the tc-4 repo?