From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17133 invoked by alias); 29 Aug 2008 17:48:28 -0000 Received: (qmail 17125 invoked by uid 22791); 29 Aug 2008 17:48:28 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.113.40.141) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Aug 2008 17:47:53 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.64.160]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 384916849; Fri, 29 Aug 2008 10:47:50 -0700 (PDT) Received: from [10.20.92.47] (unknown [10.20.92.47]) by mailhost2.vmware.com (Postfix) with ESMTP id 1A6768E5D4; Fri, 29 Aug 2008 10:47:50 -0700 (PDT) Message-ID: <48B83583.4040007@vmware.com> Date: Sat, 30 Aug 2008 03:30:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: Amol Dixit CC: "gdb@sourceware.org" Subject: Re: breakpoint in gdbserver References: <48B82409.7050202@netapp.com> <48B82FD0.2080100@vmware.com> <48B835EC.4040509@netapp.com> In-Reply-To: <48B835EC.4040509@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/msg00291.txt.bz2 Amol Dixit wrote: > > 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.). How curious...