public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "David L" <idht4n@hotmail.com>
To: gdb@sources.redhat.com
Subject: Re: Couldn't write debug register: No such process
Date: Wed, 05 Oct 2005 19:03:00 -0000	[thread overview]
Message-ID: <BAY104-F15723AADA3C41B387EB10E84820@phx.gbl> (raw)
In-Reply-To: <20051005130209.GA705@nevyn.them.org>

[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

  reply	other threads:[~2005-10-05 19:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-04 20:05 David L
2005-10-05  5:31 ` Ramana Radhakrishnan
2005-10-05 13:02 ` Daniel Jacobowitz
2005-10-05 19:03   ` David L [this message]
2005-10-05 19:06     ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY104-F15723AADA3C41B387EB10E84820@phx.gbl \
    --to=idht4n@hotmail.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).