From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30616 invoked by alias); 29 Aug 2008 21:36:59 -0000 Received: (qmail 30606 invoked by uid 22791); 29 Aug 2008 21:36:58 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 29 Aug 2008 21:36:08 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id m7TLa0T8182344 for ; Fri, 29 Aug 2008 21:36:00 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m7TLa0Nn3576044 for ; Fri, 29 Aug 2008 23:36:00 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m7TLa0MW004624 for ; Fri, 29 Aug 2008 23:36:00 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m7TLa0uu004621; Fri, 29 Aug 2008 23:36:00 +0200 Message-Id: <200808292136.m7TLa0uu004621@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 29 Aug 2008 23:36:00 +0200 Subject: Re: breakpoint in gdbserver To: dixit@netapp.com (Dixit, Amol) Date: Sat, 30 Aug 2008 22:15:00 -0000 From: "Ulrich Weigand" Cc: gdb@sourceware.org In-Reply-To: <48B82409.7050202@netapp.com> from "Dixit, Amol" at Aug 29, 2008 12:30:01 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00292.txt.bz2 Amol Dixit wrote: > 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? Gdbserver uses a direct call to the Linux "clone" system call at startup, and for some reason GDB gets really confused by this. When I want to debug gdbserver, I generally simply comment out the call to linux_test_for_tracefork in linux-nat.c:initialize_low to avoid this. Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com