From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8591 invoked by alias); 29 Aug 2008 17:24:09 -0000 Received: (qmail 8580 invoked by uid 22791); 29 Aug 2008 17:24:09 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Aug 2008 17:23:32 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.64.160]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id B94AB22002; Fri, 29 Aug 2008 10:23:30 -0700 (PDT) Received: from [10.20.92.47] (unknown [10.20.92.47]) by mailhost2.vmware.com (Postfix) with ESMTP id A4E868E61A; Fri, 29 Aug 2008 10:23:30 -0700 (PDT) Message-ID: <48B82FD0.2080100@vmware.com> Date: Sat, 30 Aug 2008 00:44:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: "Dixit, Amol" CC: "gdb@sourceware.org" Subject: Re: breakpoint in gdbserver References: <48B82409.7050202@netapp.com> In-Reply-To: <48B82409.7050202@netapp.com> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2008-08/txt/msg00289.txt.bz2 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?