Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Eager <eager@eagercon.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Add support for Xilinx MicroBlaze
Date: Fri, 25 Sep 2009 09:15:00 -0000	[thread overview]
Message-ID: <83y6o3tmjl.fsf@gnu.org> (raw)
In-Reply-To: <4ABA69CE.5040707@eagercon.com>

> Date: Wed, 23 Sep 2009 11:32:46 -0700
> From: Michael Eager <eager@eagercon.com>
> 
> Attached is a revised patch which adds support for the
> Xilinx MicroBlaze.  I believe that I've addressed all
> of the previous comments.

Thanks.  And sorry for the delay ion reviewing your patch.

>    * microblaze-linux-tdep.c: New.
>    * microblaze-rom.c: New.
>    * microblaze-tdep.c: New.
>    * microblaze-tdep.h: New.

Please add the necessary tweaks for these new files to
gdb/config/djgpp/fnchange.lst.  They will clash after 8+3 truncation.

> +@code{xmd} uses port @code{1234}. (While it is possible to change 
                                   ^^
Two spaces between sentences, please.

> +@item target remote XMD-HOST:1234
> +Use this command to connect to the target if it is connected to @code{xmd}
> +running on a different system named @code{XMD-HOST}.

Please use "@var{xmd-host}" instead of a literal upper-case XMD-HOST.
@var is what should be used in Texinfo for identifiers that stand for
something else, in this case an actual host name.

> +  /* printf("microblaze_analyze_prologue (pc = 0x%8.8x, "
> +	    "current_pc = 0x%8.8x, cache = 0x%8.8x)\n",
> +	    (int) pc, (int) current_pc, (int) cache);	*/

I believe we don't like dead code in GDB sources.

> +	  /* Spill register */

Comments should have a period and 2 blanks at their end.

> +	  cache->register_offsets[rd] = imm - cache->framesize;
> +		/* reg spilled after updating */

Strange formatting of a comment, and indentation seems wrong.

> +	  /* We have a frame pointer.  Note
> +	     the register which is acting as the frame pointer. */

Please reformat whitespace here: the first line is broken too early.

> +  switch (TYPE_LENGTH(type))

I believe GNU standards call for a space before the left paren.

> +      default:
> +	printf_filtered("Fatal error: unsupported return value size "
> +			"requested (%s @ %d)\n", __FILE__, __LINE__);

Shouldn't you call `fatal' here?

In any case, messages presented to the user should be in _(), to be
translatable (the debug messages are exempt from this rule).

> +  /* Debug this files internals. */
> +  add_setshow_zinteger_cmd ("microblaze", class_maintenance,
> +			    &microblaze_debug, _("\
> +Set microblaze debugging."), _("\
> +Show microblaze debugging."), _("\
> +When non-zero, microblaze specific debugging is enabled."),
> +			    NULL,
> +			    NULL, 
> +			    &setdebuglist, &showdebuglist);

This command should be documented in the user manual.

> --- gdb/gdb/NEWS	2009-09-06 10:14:42.000000000 -0700
> +++ mb-gdb/gdb/NEWS	2009-09-23 10:41:55.000000000 -0700
> @@ -442,6 +442,11 @@ Lattice Mico32                  lm32-*
>  x86 DICOS			i[34567]86-*-dicos*
>  x86_64 DICOS		        x86_64-*-dicos*
>  S+core 3			score-*-*
> +Xilinx MicroBlaze		microblaze-*-*
> +
> +* New Simulators
> +
> +Xilinx MicroBlaze		microblaze

The patch for NEWS is fine.

Thanks.


  reply	other threads:[~2009-09-25  9:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23 18:33 Michael Eager
2009-09-25  9:15 ` Eli Zaretskii [this message]
2009-09-25 19:16   ` Michael Eager
2009-09-25 21:47     ` Joel Brobecker
2009-09-26  0:08 ` Joel Brobecker
2009-09-26  1:30   ` Michael Eager

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=83y6o3tmjl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eager@eagercon.com \
    --cc=gdb-patches@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