From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11864 invoked by alias); 15 Dec 2007 02:22:53 -0000 Received: (qmail 11855 invoked by uid 22791); 15 Dec 2007 02:22:53 -0000 X-Spam-Check-By: sourceware.org Received: from hs-out-0708.google.com (HELO hs-out-2122.google.com) (64.233.178.242) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 15 Dec 2007 02:22:49 +0000 Received: by hs-out-2122.google.com with SMTP id 4so1310089hsl.8 for ; Fri, 14 Dec 2007 18:22:45 -0800 (PST) Received: by 10.150.181.11 with SMTP id d11mr1465941ybf.3.1197685365302; Fri, 14 Dec 2007 18:22:45 -0800 (PST) Received: by 10.151.8.4 with HTTP; Fri, 14 Dec 2007 18:22:45 -0800 (PST) Message-ID: Date: Sat, 15 Dec 2007 02:22:00 -0000 From: "Sunil Somarajan" To: gdb@sourceware.org Subject: gdbserver not able to initiatilize thread_db on arm MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00097.txt.bz2 Hi, My target is an ARMv6. I have gdb/gdbserver (6.6) BOTH compiled and linked against uClibc. I have a multi-threaded app (LinuxThreads) that I am trying to debug remotely. I have set solib-absolute-prefix to // The ld-linux.so.2 can be found against /host_home/lib/ on the host and /lib on the target. Once I load the program I am able to break at main. I see the shared libraries being loaded from /host_home/lib. The same libraries present on the target. "info shared" on the gdb client shows the following libs loaded correctly from host_home/lib libdl, libc, libpthread and ld-linux all loaded fine including a shared library that my app uses. ,libthread_db is missing on the host. gdbserver on target is linked against libthread_db.so.1 (present at /lib on target and /host_home/lib on the host). As soon as my app creates threads I see a gdb:error initializing thread_db : generic error message on the target. I instrumented thread_db.c on the target and err=1 => TD_ERR. I am not sure what is wrong ? Does thread_db need to be loaded manually on the host for this to work ? Thanks, Sunil.