aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/valprint.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e2b0121..449ae64 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2006-08-22 Mark Kettenis <kettenis@gnu.org>
+ * valprint.c (val_print_type_code_flags): Fix GNU coding standards
+ violation.
+
* alpha-tdep.c (alpha_register_to_value, alpha_value_to_register)
(alpha_push_dummy_call, alpha_extract_return_value)
(alpha_breakpoint_from_pc, alpha_read_insn)
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 4f834f2..209414d 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -347,8 +347,8 @@ val_print_type_code_flags (struct type *type, const gdb_byte *valaddr,
fputs_filtered ("[ ", stream);
for (bitpos = 0; bitpos < nfields; bitpos++)
{
- if (TYPE_FIELD_BITPOS (type, bitpos) != -1 &&
- (val & ((ULONGEST)1 << bitpos)))
+ if (TYPE_FIELD_BITPOS (type, bitpos) != -1
+ && (val & ((ULONGEST)1 << bitpos)))
{
if (TYPE_FIELD_NAME (type, bitpos))
fprintf_filtered (stream, "%s ", TYPE_FIELD_NAME (type, bitpos));