From: Yao Qi <qiyaoltc@gmail.com>
To: Simon Marchi <simon.marchi@ericsson.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix two misleading indentation warnings
Date: Fri, 29 Jan 2016 14:08:00 -0000 [thread overview]
Message-ID: <86io2cpjgh.fsf@gmail.com> (raw)
In-Reply-To: <1454006626-10564-1-git-send-email-simon.marchi@ericsson.com> (Simon Marchi's message of "Thu, 28 Jan 2016 13:43:46 -0500")
Simon Marchi <simon.marchi@ericsson.com> writes:
Hi Simon,
> diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
> index 533a33a..938261a 100644
> --- a/gdb/xcoffread.c
> +++ b/gdb/xcoffread.c
> @@ -2381,13 +2381,13 @@ scan_xcoff_symtab (struct objfile *objfile)
> if (first_fun_line_offset == 0 && symbol.n_numaux > 1)
> first_fun_line_offset =
> main_aux[0].x_sym.x_fcnary.x_fcn.x_lnnoptr;
> - {
> - record_minimal_symbol
> - (namestring, symbol.n_value,
> - sclass == C_HIDEXT ? mst_file_text : mst_text,
> - symbol.n_scnum, objfile);
> - misc_func_recorded = 1;
> - }
> + {
> + record_minimal_symbol
> + (namestring, symbol.n_value,
> + sclass == C_HIDEXT ? mst_file_text : mst_text,
> + symbol.n_scnum, objfile);
> + misc_func_recorded = 1;
> + }
> break;
This looks an indentation issue. This block was added as a replacement
to RECORD_MINIMAL_SYMBOL which was indented correctly.
https://sourceware.org/ml/gdb-patches/2012-04/msg00440.html
A nit, can we remove the brackets ("{" and "}")? Change to xcoffread.c
looks good to me.
--
Yao (齐尧)
prev parent reply other threads:[~2016-01-29 14:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-28 18:43 Simon Marchi
2016-01-29 13:57 ` Yao Qi
2016-01-29 15:47 ` Simon Marchi
2016-01-29 17:47 ` Yao Qi
2016-01-29 20:33 ` Simon Marchi
2016-01-29 14:08 ` Yao Qi [this message]
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=86io2cpjgh.fsf@gmail.com \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.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