From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21887 invoked by alias); 18 Aug 2010 19:22:13 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 21876 invoked by uid 22791); 18 Aug 2010 19:22:12 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Jan Kratochvil Cc: Oleg Nesterov , archer@sourceware.org Subject: Re: Q: multiple inferiors, all-stop && vCont In-Reply-To: Jan Kratochvil's message of Wednesday, 18 August 2010 19:07:16 +0200 <20100818170716.GA15573@host1.dyn.jankratochvil.net> References: <20100716205147.GA26313@redhat.com> <20100721170400.GA30978@redhat.com> <20100721204203.D040C400B6@magilla.sf.frob.com> <20100723173134.GA29717@redhat.com> <20100726142759.GA17171@redhat.com> <20100803123940.GA16669@host1.dyn.jankratochvil.net> <20100818170716.GA15573@host1.dyn.jankratochvil.net> Message-Id: <20100818192156.0982D4007F@magilla.sf.frob.com> Date: Wed, 18 Aug 2010 19:22:00 -0000 X-SW-Source: 2010-q3/txt/msg00120.txt.bz2 > Why libthread_db is at gdbserver and not at gdb host: > > http://sourceware.org/bugzilla/show_bug.cgi?id=8210#c7 > ------- Additional Comment #7 From Pedro Alves 2010-08-18 12:37 ------- > # Oh, dear me, I almost forgot: continuing on the comment above, supporting > # thread_db for cross debugging would also mean that we'd need to have available > # a libthread_db.so that is built for the host architecture so that GDB can load > # it, but that understands the _target_ architecture's glibc. (This is also the > # reason why we have gdbserver itself load libthread_db, not gdb, when remote > # debugging). So, I'm definitely closing this harder. :-) Note that in the big libthread_db rewrite that made it biarch-friendly, I also made the code ready to support cross targets. IIRC, if the glibc source versions match, a libthread_db should be cross-friendly already today. All that's really required for more properly full cross-friendliness is some build magic to make it easy to build just libthread_db from the libc sources. Then you could install that in some place that gdb knows to dlopen it from. Thanks, Roland