From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5176 invoked by alias); 3 Nov 2005 15:00:28 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 5146 invoked by uid 22791); 3 Nov 2005 15:00:22 -0000 Received: from elbarto.betaversion.net (HELO elbarto.betaversion.net) (82.165.28.81) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 03 Nov 2005 15:00:22 +0000 Received: by elbarto.betaversion.net (Postfix, from userid 8) id 4AA99A373B; Thu, 3 Nov 2005 16:00:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by elbarto.betaversion.net (Postfix) with ESMTP id 4A1F7A373E; Thu, 3 Nov 2005 16:00:11 +0100 (CET) Received: from elbarto.betaversion.net ([127.0.0.1]) by localhost (elbarto.betaversion.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13624-03; Thu, 3 Nov 2005 16:00:10 +0100 (CET) Received: from elbarto.betaversion.net (localhost [127.0.0.1]) by elbarto.betaversion.net (Postfix) with ESMTP id 186D8A36ED; Thu, 3 Nov 2005 16:00:10 +0100 (CET) Received: from p54A7D878.dip.t-dialin.net (p54A7D878.dip.t-dialin.net [84.167.216.120]) by admin.betaversion.net (Horde) with HTTP for ; Thu, 03 Nov 2005 16:00:09 +0100 Message-ID: <20051103160009.8sy1s7ydxhwok0ww@admin.betaversion.net> Date: Thu, 03 Nov 2005 15:00:00 -0000 From: Frank Meerkoetter To: Daniel Jacobowitz Cc: gdb@sourceware.org Subject: Re: multithreaded programs on arm-linux References: <20051102090018.va9dq0zxu4eocc0o@admin.betaversion.net> <20051102134615.0uzlh7ogng4kc44o@admin.betaversion.net> <20051102134303.GA26674@nevyn.them.org> <20051102143909.GA27932@nevyn.them.org> <20051102165558.mg4g0d5htl8ockco@admin.betaversion.net> <20051102164925.GA31801@nevyn.them.org> <20051103093306.qyr5bz57icqo04ck@admin.betaversion.net> <20051103135617.GA29302@nevyn.them.org> In-Reply-To: <20051103135617.GA29302@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0) X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1 X-SW-Source: 2005-11/txt/msg00062.txt.bz2 Quoting Daniel Jacobowitz : Hi, > OK, let's start at the top then. > > 1. Is gdbserver linked to libthread_db.so during build? I'm not using the gdbserver but rather running the gdb on the target. The reason is that i didn't managed to remote debug a program which is dynamically linked. I assume gdb is linked against libthread_db.so frank@linux:~/gdb/gdb-host-arm/gdb> arm-linux-readelf --syms gdb | grep thread_db 1896: 0005be00 28 FUNC GLOBAL DEFAULT 13 thread_db_init 3751: 0005d7f4 80 FUNC GLOBAL DEFAULT 13 _initialize_thread_db 647: 0005b6e4 400 FUNC LOCAL DEFAULT 13 thread_db_err_str 649: 0005b874 168 FUNC LOCAL DEFAULT 13 thread_db_state_str 653: 0005bac4 168 FUNC LOCAL DEFAULT 13 thread_db_map_id2thr 656: 0005bb6c 140 FUNC LOCAL DEFAULT 13 thread_db_get_info 662: 0005be58 1044 FUNC LOCAL DEFAULT 13 thread_db_load 686: 0005c5d0 428 FUNC LOCAL DEFAULT 13 thread_db_new_objfile 687: 0005d3e8 108 FUNC LOCAL DEFAULT 13 thread_db_find_new_threads 688: 0026d4fc 0 NOTYPE LOCAL DEFAULT 22 using_thread_db 690: 0026d3b0 0 NOTYPE LOCAL DEFAULT 22 thread_db_ops 692: 0005c908 76 FUNC LOCAL DEFAULT 13 thread_db_attach 694: 0005c9e8 88 FUNC LOCAL DEFAULT 13 thread_db_detach 696: 0005ca74 168 FUNC LOCAL DEFAULT 13 thread_db_resume 698: 0005cca0 304 FUNC LOCAL DEFAULT 13 thread_db_wait 699: 0005cdd0 204 FUNC LOCAL DEFAULT 13 thread_db_xfer_memory 700: 0005ce9c 272 FUNC LOCAL DEFAULT 13 thread_db_fetch_registers 701: 0005cfac 340 FUNC LOCAL DEFAULT 13 thread_db_store_registers 702: 0005d100 52 FUNC LOCAL DEFAULT 13 thread_db_kill 703: 0005d134 96 FUNC LOCAL DEFAULT 13 thread_db_create_inferior 704: 0005d194 68 FUNC LOCAL DEFAULT 13 thread_db_post_startup_inferior 705: 0005d1d8 80 FUNC LOCAL DEFAULT 13 thread_db_mourn_inferior 706: 0005d228 248 FUNC LOCAL DEFAULT 13 thread_db_thread_alive 709: 0005d454 292 FUNC LOCAL DEFAULT 13 thread_db_pid_to_str 710: 0005d578 372 FUNC LOCAL DEFAULT 13 thread_db_get_thread_local_address 711: 0005d6ec 264 FUNC LOCAL DEFAULT 13 init_thread_db_ops 7239: 0005be00 28 FUNC GLOBAL DEFAULT 13 thread_db_init 9093: 0005d7f4 80 FUNC GLOBAL DEFAULT 13 _initialize_thread_db The libthread_db.so of the toolchain and the target have matching md5sums. Regards, Frank