diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 15:01:28 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 15:01:28 -0400 |
commit | 01add95bed9afd5e7815439c3967db976be53f80 (patch) | |
tree | a0239dcf29375bf6e4382d419d17117b1665d8ab /gdb/xcoffread.c | |
parent | 055c879fcf242e43a6ef8190f83905109922da93 (diff) |
gdb: fix some indentation issues
I wrote a small script to spot a pattern of indentation mistakes I saw
happened in breakpoint.c. And while at it I ran it on all files and
fixed what I found. No behavior changes intended, just indentation and
addition / removal of curly braces.
gdb/ChangeLog:
* Fix some indentation mistakes throughout.
gdbserver/ChangeLog:
* Fix some indentation mistakes throughout.
Change-Id: Ia01990c26c38e83a243d8f33da1d494f16315c6e
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 368572797f..a854d4daf3 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -482,7 +482,8 @@ arrange_linetable (struct linetable *oldLineTb) newline = 0; if (oldLineTb->item[0].line != 0) for (newline = 0; - newline < oldLineTb->nitems && oldLineTb->item[newline].line; ++newline) + newline < oldLineTb->nitems && oldLineTb->item[newline].line; + ++newline) newLineTb->item[newline] = oldLineTb->item[newline]; /* Now copy function lines one by one. */ @@ -1165,20 +1166,20 @@ read_xcoff_symtab (struct objfile *objfile, legacy_psymtab *pst) to 32(0x20). So we need to read the first function auxiliary entry which contains the size. */ if (cs->c_naux > 1 && ISFCN (cs->c_type)) - { - /* a function entry point. */ + { + /* a function entry point. */ - fcn_start_addr = cs->c_value; + fcn_start_addr = cs->c_value; - /* save the function header info, which will be used - when `.bf' is seen. */ - fcn_cs_saved = *cs; + /* save the function header info, which will be used + when `.bf' is seen. */ + fcn_cs_saved = *cs; - /* Convert the auxent to something we can access. */ - bfd_coff_swap_aux_in (abfd, raw_auxptr, cs->c_type, cs->c_sclass, - 0, cs->c_naux, &fcn_aux_saved); - continue; - } + /* Convert the auxent to something we can access. */ + bfd_coff_swap_aux_in (abfd, raw_auxptr, cs->c_type, cs->c_sclass, + 0, cs->c_naux, &fcn_aux_saved); + continue; + } /* Read the csect auxiliary header, which is always the last by convention. */ bfd_coff_swap_aux_in (abfd, |