From: Joel Brobecker <brobecker@adacore.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] MIPS SDE OS ABI support
Date: Mon, 15 Dec 2014 13:10:00 -0000 [thread overview]
Message-ID: <20141215131032.GW5457@adacore.com> (raw)
In-Reply-To: <1418629607-20086-1-git-send-email-yao@codesourcery.com>
> 2014-12-15 Maciej W. Rozycki <macro@codesourcery.com>
> Nigel Stephens <nigel@mips.com>
> Chris Dearman <chris@mips.com>
> Luis Machado <lgustavo@codesourcery.com>
>
> * sde-mips-tdep.c: New file containg SDE specific code.
> * configure.tgt (mips*-sde*-elf*): Add sde-mips-tdep.o to
> gdb_target_obs.
> * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
> * osabi.c (gdb_osabi_names): Add SDE.
> * NEWS: Mention the change.
I just skimmed through that patch, and noticed a few things, all
of fairly trivial nature. So, as soon as fixed, I think the patch
can go in (modulo NEWS to be approved by Eli).
> +static struct trad_frame_cache *
> +mips_sde_frame_cache (struct frame_info *this_frame, void **this_cache)
All functions should have an introductory comment. Since these
implement callbacks/"methods", the usual one-liner that describe
which callback they implement should be used.
> +static void
> +mips_sde_frame_this_id (struct frame_info *this_frame, void **this_cache,
> + struct frame_id *this_id)
> +{
> + struct trad_frame_cache *this_trad_cache
> + = mips_sde_frame_cache (this_frame, this_cache);
> + trad_frame_get_id (this_trad_cache, this_id);
Empty line between variable declaration and the rest of the code.
> +static struct value *
> +mips_sde_frame_prev_register (struct frame_info *this_frame,
> + void **this_cache,
> + int prev_regnum)
> +{
> + struct trad_frame_cache *trad_cache
> + = mips_sde_frame_cache (this_frame, this_cache);
> + return trad_frame_get_register (trad_cache, this_frame, prev_regnum);
Likewise.
> +static CORE_ADDR
> +mips_sde_frame_base_address (struct frame_info *this_frame, void **this_cache)
> +{
> + struct trad_frame_cache *this_trad_cache
> + = mips_sde_frame_cache (this_frame, this_cache);
> + return trad_frame_get_this_base (this_trad_cache);
Same here.
--
Joel
next prev parent reply other threads:[~2014-12-15 13:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-15 7:47 Yao Qi
2014-12-15 8:23 ` Yao Qi
2014-12-18 13:31 ` Yao Qi
2014-12-18 15:43 ` Eli Zaretskii
2014-12-15 13:10 ` Joel Brobecker [this message]
2014-12-18 17:36 ` Pedro Alves
2014-12-19 5:14 ` Yao Qi
2014-12-21 2:45 ` Maciej W. Rozycki
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=20141215131032.GW5457@adacore.com \
--to=brobecker@adacore.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).