From: "The Westlakers" <westlakers@gmail.com>
To: gdb@sourceware.org
Cc: "The Westlakers" <westlakers@gmail.com>
Subject: questions about s/w and h/w breakpoint in GDB
Date: Sat, 22 Dec 2007 15:35:00 -0000 [thread overview]
Message-ID: <6b14b5b00712220735h4eba75dbsc778dbd0ea077e09@mail.gmail.com> (raw)
Greeting!
I have couple of questions regarding gdb with remote target in Sparc:
1) how to configure the gdb to issue an h/w breakpoint?
2) in software breakpoint, gdb 'cont' command will issue this
following serial protocol commands
after setting breakpoint, say at location of 0x50c57c:
- Z0,50c57c
- Hc0
- C11
- c
- g
- z0,50c57c
then the target return SIGSTOP, gdb stops at prompt, the target stops
at 0x50c57c and
then we type gdb command 'cont' again, it issues the following commands:
- m50c57c
- Z0,50c580
- Hc1
- C11
- c
- g
- z0,50c580
sounds like gdb implements the s/w bp as:
insert bp, exec, insert step-bp and exec.
Do we have to type two 'cont' to make one single exec of the breakpoint?
what is the right behavior from the target?
Thanks
Jesse
reply other threads:[~2007-12-22 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=6b14b5b00712220735h4eba75dbsc778dbd0ea077e09@mail.gmail.com \
--to=westlakers@gmail.com \
--cc=gdb@sourceware.org \
/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).