From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8414 invoked by alias); 5 Oct 2005 19:03:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8388 invoked by uid 22791); 5 Oct 2005 19:03:39 -0000 Received: from bay104-f15.bay104.hotmail.com (HELO hotmail.com) (65.54.175.25) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 05 Oct 2005 19:03:39 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 5 Oct 2005 12:02:32 -0700 Message-ID: Received: from 65.54.175.200 by by104fd.bay104.hotmail.msn.com with HTTP; Wed, 05 Oct 2005 19:02:32 GMT X-Sender: idht4n@hotmail.com In-Reply-To: <20051005130209.GA705@nevyn.them.org> From: "David L" To: gdb@sources.redhat.com Bcc: Subject: Re: Couldn't write debug register: No such process Date: Wed, 05 Oct 2005 19:03:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-SW-Source: 2005-10/txt/msg00015.txt.bz2 [snip] >On Tue, Oct 04, 2005 at 01:04:58PM -0700, David L wrote: > > I'm getting this error when I try to continue after setting a remote >target > > (gdbserver on a local socket). I'm using gdb 6.3 that I compiled from > > source on a fedora core 3 system. > > Couldn't write debug register: No such process > > > > > > What does this mean? Thanks... > >That something is broken. There's not enough information in your >report to say more. Is the gdbserver also running on an IA32 GNU/Linux >platform? What's the transcript of the session look like? gdbserver is running on the same computer like this: /usr/local/bin/gdbserver localhost:9005 testfixed testfixed.conf >From the gdb session: GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) target remote localhost:9005 Remote debugging using localhost:9005 0x00add7c0 in ?? () (gdb) watch *((double *) 0x8155218) Hardware watchpoint 1: *(double *) 135615000 (gdb) cont Continuing. Couldn't write debug register: No such process. I'm not sure if it's ok to add a watchpoint like I did, but it works when I don't use gdbserver. I did it like this because adding a watchpoint like this: (gdb) watch confidence_[7] Hardware watchpoint 6: this->confidence_[7] doesn't work: (gdb) cont Continuing. current stack frame does not contain a variable named `this' So I found the address of confidence_[7] (gdb) print &confidence_[7] $3 = (double *) 0x8155218 and set the watchpoint on the address instead of on the variable name. Cheers... Dave _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement