Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: pedro@codesourcery.com (Pedro Alves)
Cc: gdb@sourceware.org, karl.leplat@parrot.com (karl leplat)
Subject: Re: How to use gdbserver for X86 host with arm-linux target ?
Date: Mon, 12 Sep 2011 17:24:00 -0000	[thread overview]
Message-ID: <201109121724.p8CHOaKe019074@d06av02.portsmouth.uk.ibm.com> (raw)
In-Reply-To: <201109121448.18875.pedro@codesourcery.com> from "Pedro Alves" at Sep 12, 2011 02:48:18 PM

Pedro Alves wrote:
> On Monday 12 September 2011 12:24:01, karl leplat wrote:
> > Hi,
> > 
> > When i inserted a hardware breakpoint, i got the result :
> > 
> > Side gdb:
> > Warning:
> > Cannot insert hardware breakpoint 1.
> > Could not insert hardware breakpoints:
> > You may have requested too many hardware breakpoints/watchpoints.
> > 
> > Side gdbserver:
> > In the file: "gdbserver/linux-arm-low.c" , i have seen that the target
> > has not registered the function insert_point.
> > 
> > Is it normal ?
> 
> Yes.  The arm-linux gdbserver port was never taught about
> managing breakpoints itself.  When that callback is not installed,
> gdb itself inserts breakpoints in program memory, using regular
> memory writes to plant the breakpoint insn.
> 
> > Is there a solution ?
> 
> There's code in native arm port of gdb to support hardware breakpoints
> and watchpoints (arm-linux-nat.c).  Someone interested should be able
> to port it to gdbserver.

As it happens, this is what I've been working on recently.  I've just
posted a patch implementing this feature:
http://sourceware.org/ml/gdb-patches/2011-09/msg00200.html

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2011-09-12 17:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-12 11:25 karl leplat
2011-09-12 13:48 ` Pedro Alves
2011-09-12 17:24   ` Ulrich Weigand [this message]
2011-09-13 17:28   ` Doug Evans
2011-09-14 12:27     ` Ulrich Weigand
2011-09-14 19:36     ` Stan Shebs

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=201109121724.p8CHOaKe019074@d06av02.portsmouth.uk.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=gdb@sourceware.org \
    --cc=karl.leplat@parrot.com \
    --cc=pedro@codesourcery.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