From: Pedro Alves <pedro@codesourcery.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 2/2] Displaced stepping across fork/vfork : test case
Date: Thu, 15 Sep 2011 16:13:00 -0000 [thread overview]
Message-ID: <201109151652.57149.pedro@codesourcery.com> (raw)
In-Reply-To: <4E721948.5080407@codesourcery.com>
On Thursday 15 September 2011 16:27:04, Yao Qi wrote:
> This is improved by adding another matching in inserting breakpoint on
> syscall insns like this,
...
> + set syscall_insn_bp 0
> + gdb_test_multiple "break \*$syscall_insn_addr" "break on syscall insn" {
> + -re "Breakpoint (\[0-9\]*) at .*$gdb_prompt $" {
> + set syscall_insn_bp $expect_out(1,string)
> + pass "break on syscall insns"
> + }
> + -re "Cannot insert breakpoint .*${gdb_prompt} $" {
> + # This syscall insn may be in vsyscall page, and we can't set a breakpoint
> + # there on some systems.
> + fail "break on syscall insns"
Please don't make this is a fail. It is not GDB's fault. "unsupported"
or "xfail" would be better.
> + set pf_prefix $old_pf_prefix
> + return -1
> + }
> + }
But this won't work as is. Breakpoints will only be inserted on the
next resume, not immediately. Unless you enable always-inserted mode,
that is.
--
Pedro Alves
next prev parent reply other threads:[~2011-09-15 15:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-11 9:55 Yao Qi
2011-09-12 15:03 ` Pedro Alves
2011-09-14 11:32 ` Yao Qi
2011-09-14 12:32 ` Pedro Alves
2011-09-15 15:32 ` Yao Qi
2011-09-15 16:13 ` Pedro Alves [this message]
2011-09-16 6:49 ` Yao Qi
2011-09-16 10:44 ` Pedro Alves
2011-09-17 14:35 ` [committed]: " Yao Qi
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=201109151652.57149.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=yao@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