Problem with running simple pthreads program under gdb-7.2 (Invalid selected thread)

Raphael Kubo da Costa kubito at gmail.com
Fri May 27 00:03:33 UTC 2011


Andriy Gapon <avg at FreeBSD.org> writes:

> on 26/05/2011 16:33 John Baldwin said the following:
>> On Thursday, May 26, 2011 3:37:13 am Andriy Gapon wrote:
>>> on 26/05/2011 03:35 Raphael Kubo da Costa said the following:
>>>> If I compile the port myself, I can't run any binary (PR ports/152896,
>>>> which has been unanswered despite my efforts):
>>>>
>>>>   Reading symbols from /usr/local/bin/gdb72...I'm sorry, Dave, I can't
>>>>   do that.  Symbol format `elf64-x86-64-freebsd' unknown.
>>>>
>>>
>>> This is a somewhat known issue that John was going to fix a while ago.
>> 
>> Actually, it's not really fixable if you have libreadline installed from ports 
>> and binutils installed from ports.  I'd like to just remove the hack to use
>> libreadline from ports if possible.
>
> I referred to this option as a fix.

Thanks, removing readline from ports worked like a charm after I
recompiled devel/gdb. Installing it from the package still doesn't work,
though.

Shouldn't the hack in the port be reversed, ie. if readline from ports
is installed the port is marked as BROKEN?



More information about the freebsd-hackers mailing list