From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29881 invoked by alias); 8 Feb 2012 19:42:02 -0000 Received: (qmail 29871 invoked by uid 22791); 8 Feb 2012 19:42:01 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Feb 2012 19:41:47 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q18Jfjc5019055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 8 Feb 2012 14:41:45 -0500 Received: from host2.jankratochvil.net (ovpn-116-26.ams2.redhat.com [10.36.116.26]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q18JffM4012736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 8 Feb 2012 14:41:44 -0500 Date: Wed, 08 Feb 2012 19:42:00 -0000 From: Jan Kratochvil To: Klaus Zeitler Cc: gdb@sourceware.org Subject: Re: Remote debugging: setting breakpoints in shared libraries Message-ID: <20120208194140.GA16126@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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: 2012-02/txt/msg00012.txt.bz2 On Tue, 31 Jan 2012 17:16:30 +0100, Klaus Zeitler wrote: > Now when I try running the same sequence with gdbserver on a remote host > (and localhost replaced accordingly), gdb doesn't stop at the > breakpoint. My test program doesn't stop. It may be affected for example by not yet fixed in that version: [patch] [i386] Fix {,un}prelinked libraries for attach/core-load http://sourceware.org/ml/gdb-patches/2011-02/msg00630.html http://sourceware.org/ml/gdb-patches/2011-04/msg00272.html While there exist other methods for simplicity of the troubleshooting I would connect the remote system via NFS and use `set sysroot' to that mounted directory. This will ensure the local symbol files match the remote files. Regards, Jan