From: "Spen" <spam@freenetname.co.uk>
To: <gdb@sources.redhat.com>
Subject: gdb function address
Date: Tue, 25 Jan 2005 22:46:00 -0000 [thread overview]
Message-ID: <000401c5032f$94ad2a90$10a0bd50@NTHOME> (raw)
I am currently using gdb/insight to debug a arm7tdmi via OCDRemote
GDBServer/TCP.
The hardware breakpoints can be set as follows:
monitor set hbreak 0x20000000 - which sets a hardware breakpoint @
address 0x20000000.
This method only gives access to a single breakpoint, the other used by
ocdremote for stepping etc.
The user command below is another method and gives access to both
hardware breakpoints
define ibreak
monitor reg w$arg0av = $arg1
monitor reg w$arg0am = 1
monitor reg w$arg0dv = 0
monitor reg w$arg0dm = 0xFFFFFFFF
monitor reg w$arg0cv = 0x100
monitor reg w$arg0cm = 0xFFFFFEF7
end
ibreak 0 0x20000000 - set breakpoint zero @ 0x20000000
The drawback is that the breakpoint address needs to be known, is there
any way to get behaiour similar to the standard break/hbreak commands,
ie. break main. And resolve the function name into an address ?
Many Thanks
Spencer Oliver
next reply other threads:[~2005-01-25 22:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-25 22:46 Spen [this message]
2005-02-08 16:22 ` Andrew Cagney
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='000401c5032f$94ad2a90$10a0bd50@NTHOME' \
--to=spam@freenetname.co.uk \
--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