From: Joel Brobecker <brobecker@adacore.com>
To: Michael Snyder <msnyder@vmware.com>
Cc: Hui Zhu <teawater@gmail.com>,
gdb-patches ml <gdb-patches@sourceware.org>,
shuchang zhou <shuchang.zhou@gmail.com>,
paawan oza <paawan1982@yahoo.com>
Subject: Re: [RFC] Add support of software single step to process record
Date: Sun, 20 Dec 2009 13:48:00 -0000 [thread overview]
Message-ID: <20091220133009.GI2788@adacore.com> (raw)
In-Reply-To: <4B2BD97E.1020106@vmware.com>
Hui:
> >2009-12-18 Hui Zhu <teawater@gmail.com>
> >
> > * breakpoint.c (inserted_single_step_breakpoint_p): New
> > function.
> > * breakpoint.h (inserted_single_step_breakpoint_p): Extern.
> > * record.c (record_resume): Add code for software single step.
> > (record_wait): Ditto.
I understand Michael's answer as approval. I do not see any problem
with it, but my knowledge of the target stack in the resume/wait area
is pretty sketchy.
Just a stylistic comment on the patch:
> >+/* Check if the breakpoints used for software single stepping
> >inserted or not. */
Formatting and missing "are".
/* Check if the breakpoints used for software single stepping
are inserted or not. */
> >+int
> >+inserted_single_step_breakpoint_p (void)
Can you rename this function to:
single_step_breakpoints_inserted
The "inserted" already conveys the idea of a condition/predicate,
so the _p is superfluous in this case.
I'm also a little worried about the code adding calls to functions
that in essence return a global variable. For instance, you are
introducing calls to get_current_frame or current_gdbarch().
Ulrich is one of our specialists in this area, whereas I'm not sure,
but I am wondering if we are introducing any latent issue by using
these routines...
--
Joel
next prev parent reply other threads:[~2009-12-20 13:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-18 8:21 Hui Zhu
2009-12-18 19:37 ` Michael Snyder
2009-12-20 13:48 ` Joel Brobecker [this message]
2009-12-23 6:38 ` Hui Zhu
2009-12-23 6:52 ` Joel Brobecker
2009-12-23 9:24 ` Hui Zhu
[not found] ` <8d62b6fe0912231751p1202294cw83430e8d53af0951@mail.gmail.com>
2009-12-24 1:54 ` Fwd: " shuchang zhou
2009-12-24 17:38 ` Pedro Alves
2010-01-04 14:23 ` Hui Zhu
2010-01-08 16:24 ` Pedro Alves
2010-05-25 5:14 ` Hui Zhu
2010-05-27 6:51 ` Hui Zhu
2010-06-11 13:55 ` Pedro Alves
2010-06-20 7:29 ` Hui Zhu
2010-06-22 10:13 ` Pedro Alves
2010-07-19 7:58 ` Hui Zhu
2009-12-22 18:23 ` Tom Tromey
2009-12-23 3:09 ` Hui Zhu
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=20091220133009.GI2788@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=msnyder@vmware.com \
--cc=paawan1982@yahoo.com \
--cc=shuchang.zhou@gmail.com \
--cc=teawater@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