From: Joel Brobecker <brobecker@adacore.com>
To: Luis Machado <luisgpm@linux.vnet.ibm.com>
Cc: Pedro Alves <pedro@codesourcery.com>,
Daniel Jacobowitz <drow@false.org>,
gdb-patches@sourceware.org
Subject: Re: [PATCH] PPC - Stepping off breakpoints in non-stop mode
Date: Wed, 25 Jun 2008 13:51:00 -0000 [thread overview]
Message-ID: <20080625134033.GE3700@adacore.com> (raw)
In-Reply-To: <1214400118.10496.36.camel@gargoyle>
> 2008-06-25 Luis Machado <luisgpm@br.ibm.com>
>
> * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
> (deal_with_atomic_sequence): Update BC masks.
> (rs6000_gdbarch_init): Init displaced stepping infra-structure.
> Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
Yep, this looks great. Could you just double-check the formatting of
a couple of comments before you commit? These darn tabs sometimes
confuse me when they are combined with diff markers...
> + /* Offset for non-PC relative instructions. */
Should the hyphen be between "PC" and "relative"?
(I-am-not-an-English-native-speaker alert!).
> + /* AA bit indicating whether this is an absolute addressing or
> + PC-relative. */
I think there are a couple of spaces missing at the beginning of the
second line. Also, perhaps a comment that says that the bit isn't set
and therefore the addressing is [...] might be helpful? (just an idea,
you don't have to followup if you disagree).
> + if (debug_displaced)
> + fprintf_unfiltered (gdb_stdlog,
> + "displaced: (ppc) branch instruction: 0x%s\n"
> + "displaced: (ppc) adjusted PC from 0x%s to 0x%s\n",
> + paddr_nz (insn), paddr_nz (current_pc),
> + paddr_nz (from + offset));
I missed that part in my previous review. The formatting should be:
fprintf_unfiltered
(gdb_stdlog,
"displaced: (ppc) branch instruction: 0x%s\n"
"displaced: (ppc) adjusted PC from 0x%s to 0x%s\n",
paddr_nz (insn), paddr_nz (current_pc),
paddr_nz (from + offset));
> + /* LK bit Indicates whether we should set the link register to point
> + to the next instruction or not. */
Formatting as well on the start of the second line.
--
Joel
next prev parent reply other threads:[~2008-06-25 13:40 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 20:26 Luis Machado
2008-05-19 15:20 ` Pedro Alves
2008-05-19 15:21 ` Luis Machado
2008-05-29 15:41 ` Luis Machado
2008-06-05 20:03 ` Daniel Jacobowitz
2008-06-06 16:00 ` Luis Machado
2008-06-24 14:59 ` Luis Machado
2008-06-24 18:08 ` Pedro Alves
2008-06-24 18:19 ` Luis Machado
2008-06-25 12:54 ` Joel Brobecker
2008-06-25 13:35 ` Luis Machado
2008-06-25 13:51 ` Joel Brobecker [this message]
2008-06-25 15:48 ` Luis Machado
2008-06-25 18:49 ` Joel Brobecker
2008-06-30 17:04 ` Luis Machado
2008-05-19 15:20 ` Luis Machado
2008-07-08 1:39 Jonathan Larmour
2008-07-08 3:53 ` Luis Machado
2008-07-08 14:59 ` Jonathan Larmour
2008-07-08 15:13 ` Luis Machado
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=20080625134033.GE3700@adacore.com \
--to=brobecker@adacore.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=luisgpm@linux.vnet.ibm.com \
--cc=pedro@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