From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: karl leplat <karl.leplat@parrot.com>
Subject: Re: How to use gdbserver for X86 host with arm-linux target ?
Date: Mon, 12 Sep 2011 13:48:00 -0000 [thread overview]
Message-ID: <201109121448.18875.pedro@codesourcery.com> (raw)
In-Reply-To: <4E6DEBD1.4080007@parrot.com>
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.
--
Pedro Alves
next prev parent reply other threads:[~2011-09-12 13:48 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 [this message]
2011-09-12 17:24 ` Ulrich Weigand
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=201109121448.18875.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=karl.leplat@parrot.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