From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16177 invoked by alias); 29 Aug 2008 17:46:59 -0000 Received: (qmail 16166 invoked by uid 22791); 29 Aug 2008 17:46:58 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.netapp.com (HELO mx2.netapp.com) (216.240.18.37) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Aug 2008 17:46:23 +0000 X-IronPort-AV: E=Sophos;i="4.32,293,1217833200"; d="scan'208";a="41950998" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 29 Aug 2008 10:46:21 -0700 Received: from dixit-lxp.nane.netapp.com ([10.97.17.120]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id m7THkKtU000350; Fri, 29 Aug 2008 10:46:21 -0700 (PDT) Message-ID: <48B835EC.4040509@netapp.com> Date: Sat, 30 Aug 2008 01:03:00 -0000 From: Amol Dixit User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: Michael Snyder CC: "gdb@sourceware.org" Subject: Re: breakpoint in gdbserver References: <48B82409.7050202@netapp.com> <48B82FD0.2080100@vmware.com> In-Reply-To: <48B82FD0.2080100@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2008-08/txt/msg00290.txt.bz2 Michael Snyder wrote: > Dixit, Amol wrote: >> Hi, >> I am attempting to port gdbserver for freebsd (libpthread/libthr). While >> I may have complex doubts later, I will start with a simple one. >> I need to look at some gdbserver code path on Linux, and while I can set >> breakpoints and these functions are entered, gdb doesn't break at all. >> Gdbserver is compiled w/ symbols and I am using gdb6.8 to debug it. >> Any idea what I am missing here? >> >> (gdb) i b >> Num Type Disp Enb Address What >> 1 breakpoint keep y 0x0804f214 in main at ../server.c:1230 >> breakpoint already hit 1 time >> 2 breakpoint keep y 0x0804d560 in start_inferior at >> ../server.c:91 >> 3 breakpoint keep y 0x0804b460 in add_thread at >> ../inferiors.c:101 >> >> I can hit 1, but not 2 & 3 for example. > > I assume you are using one gdb to debug gdbserver, > and a second gdb to talk to gdbserver's socket? > Correct. I can break in freebsd gdbserver build, but not linux (functions or line nos.).