Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Ulisses Furquim <ulissesf@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Watchpoints in an ARM platform
Date: Thu, 31 May 2007 17:23:00 -0000	[thread overview]
Message-ID: <20070531170329.GA23197@localhost.localdomain> (raw)
In-Reply-To: <d23110170705310318i17008caera3edc1d3f69e9dce@mail.gmail.com>

On Thu, May 31, 2007 at 12:18:32PM +0200, Ulisses Furquim wrote:
> It says the target doesn't support that type of hardware watchpoint
> when I've tried rwatch and awatch, but it works when I use the watch
> command (maybe using some software watchpoint). After that I can

Correct.  ARM Linux has no support for hardware watchpoints; I don't
think any ARM platform has watchpoints that can be used in user space
like i386 / ppc do.  It might be possible to expose the same
watchpoint controller that JTAG would use though.

> continue and it correctly stops the program the first time, but when I
> continue again something goes wrong and gdb gets confused. Do you have
> any idea why this happens? Am I missing anything here?

A software watchpoint is implemented by repeatedly single stepping.
You've stepped into something that confused GDB, probably the start of
a PLT stub for a function from a dynamic library.  I thought recent
ARM GDB would recognize those stubs fine, but I guess something has
gone wrong.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-05-31 17:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-31 10:18 Ulisses Furquim
2007-05-31 17:23 ` Daniel Jacobowitz [this message]
2007-05-31 18:30   ` Ulisses Furquim

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=20070531170329.GA23197@localhost.localdomain \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=ulissesf@gmail.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