From owner-freebsd-hackers@FreeBSD.ORG Fri May 27 00:03:33 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FD93106564A for ; Fri, 27 May 2011 00:03:33 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id CF19D8FC14 for ; Fri, 27 May 2011 00:03:32 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QPkWZ-0003IF-LL for freebsd-hackers@freebsd.org; Fri, 27 May 2011 02:03:31 +0200 Received: from 201.82.186.242 ([201.82.186.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 May 2011 02:03:31 +0200 Received: from kubito by 201.82.186.242 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 May 2011 02:03:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Raphael Kubo da Costa Date: Thu, 26 May 2011 21:03:19 -0300 Lines: 26 Message-ID: <87pqn557so.fsf@gmail.com> References: <87pqn6jo33.fsf@gmail.com> <4DDE0329.9030208@FreeBSD.org> <201105260933.19077.jhb@freebsd.org> <4DDE5762.8060901@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 201.82.186.242 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (berkeley-unix) Cancel-Lock: sha1:v1QRHplP1kF/gL5JQUteneUAy6k= Subject: Re: Problem with running simple pthreads program under gdb-7.2 (Invalid selected thread) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 00:03:33 -0000 Andriy Gapon 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?