aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-12-27 19:33:05 +0000
committerMichael Snyder <msnyder@vmware.com>2001-12-27 19:33:05 +0000
commitb01d807cd94c1c2dec6038501adec4f39c9c0244 (patch)
treedc6bc103bc4d5314d51770c3e0186a767f676bb0 /gdb/maint.c
parentf6680716436439d307423b1749afd98ef9d01915 (diff)
downloadfsf-binutils-gdb-b01d807cd94c1c2dec6038501adec4f39c9c0244.zip
fsf-binutils-gdb-b01d807cd94c1c2dec6038501adec4f39c9c0244.tar.gz
fsf-binutils-gdb-b01d807cd94c1c2dec6038501adec4f39c9c0244.tar.bz2
2001-12-27 Michael Snyder <msnyder@redhat.com>
* maint.c (match_substring): GNU coding standards fixes. (print_bfd_section_info): Ditto. (print_objfile_section_info): Ditto.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index 2f85801..9e66b09 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -197,14 +197,14 @@ match_substring (const char *string, const char *substr)
while ((tok = strstr (string, substr)) != NULL)
{
/* Got a partial match. Is it a whole word? */
- if (tok == string ||
- tok[-1] == ' ' ||
- tok[-1] == '\t')
+ if (tok == string
+ || tok[-1] == ' '
+ || tok[-1] == '\t')
{
/* Token is delimited at the front... */
- if (tok[substr_len] == ' ' ||
- tok[substr_len] == '\t' ||
- tok[substr_len] == '\0')
+ if (tok[substr_len] == ' '
+ || tok[substr_len] == '\t'
+ || tok[substr_len] == '\0')
{
/* Token is delimited at the rear. Got a whole-word match. */
return 1;
@@ -311,9 +311,9 @@ print_bfd_section_info (bfd *abfd,
flagword flags = bfd_get_section_flags (abfd, asect);
const char *name = bfd_section_name (abfd, asect);
- if (arg == NULL || *((char *) arg) == '\0' ||
- match_substring ((char *) arg, name) ||
- match_bfd_flags ((char *) arg, flags))
+ if (arg == NULL || *((char *) arg) == '\0'
+ || match_substring ((char *) arg, name)
+ || match_bfd_flags ((char *) arg, flags))
{
CORE_ADDR addr, endaddr;
@@ -331,9 +331,9 @@ print_objfile_section_info (bfd *abfd,
flagword flags = bfd_get_section_flags (abfd, asect->the_bfd_section);
const char *name = bfd_section_name (abfd, asect->the_bfd_section);
- if (string == NULL || *string == '\0' ||
- match_substring (string, name) ||
- match_bfd_flags (string, flags))
+ if (string == NULL || *string == '\0'
+ || match_substring (string, name)
+ || match_bfd_flags (string, flags))
{
print_section_info (name, flags, asect->addr, asect->endaddr,
asect->the_bfd_section->filepos);