diff options
author | Tom Tromey <tromey@redhat.com> | 2014-05-14 13:31:10 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-05-14 13:31:10 -0600 |
commit | dd7566892070fbccb91c536c46584c20ef29961b (patch) | |
tree | 2df344451ab35135c2d23a672dbbd5a6b6c6f0d9 | |
parent | 71a79f8c9cf2a66f4e4cb9b5c6cb44f8723724eb (diff) | |
download | gdb-dd7566892070fbccb91c536c46584c20ef29961b.zip gdb-dd7566892070fbccb91c536c46584c20ef29961b.tar.gz gdb-dd7566892070fbccb91c536c46584c20ef29961b.tar.bz2 |
reindent print_macro_definition
I happened to notice that print_macro_definition is indented
improperly. All the lines were a few extra spaces to the right.
This patch fixes the indentation.
Tested by rebuilding, committed.
2014-05-14 Tom Tromey <tromey@redhat.com>
* macrocmd.c (print_macro_definition): Reindent.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/macrocmd.c | 48 |
2 files changed, 28 insertions, 24 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c7a7667..d9e774a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-05-14 Tom Tromey <tromey@redhat.com> + + * macrocmd.c (print_macro_definition): Reindent. + 2014-05-13 Doug Evans <xdje42@gmail.com> * python/py-cmd.c (cmdpy_completer): Add comment. diff --git a/gdb/macrocmd.c b/gdb/macrocmd.c index 52ad6fa..0455fb0 100644 --- a/gdb/macrocmd.c +++ b/gdb/macrocmd.c @@ -159,32 +159,32 @@ print_macro_definition (const char *name, struct macro_source_file *file, int line) { - fprintf_filtered (gdb_stdout, "Defined at "); - show_pp_source_pos (gdb_stdout, file, line); + fprintf_filtered (gdb_stdout, "Defined at "); + show_pp_source_pos (gdb_stdout, file, line); - if (line != 0) - fprintf_filtered (gdb_stdout, "#define %s", name); - else - fprintf_filtered (gdb_stdout, "-D%s", name); + if (line != 0) + fprintf_filtered (gdb_stdout, "#define %s", name); + else + fprintf_filtered (gdb_stdout, "-D%s", name); - if (d->kind == macro_function_like) - { - int i; - - fputs_filtered ("(", gdb_stdout); - for (i = 0; i < d->argc; i++) - { - fputs_filtered (d->argv[i], gdb_stdout); - if (i + 1 < d->argc) - fputs_filtered (", ", gdb_stdout); - } - fputs_filtered (")", gdb_stdout); - } - - if (line != 0) - fprintf_filtered (gdb_stdout, " %s\n", d->replacement); - else - fprintf_filtered (gdb_stdout, "=%s\n", d->replacement); + if (d->kind == macro_function_like) + { + int i; + + fputs_filtered ("(", gdb_stdout); + for (i = 0; i < d->argc; i++) + { + fputs_filtered (d->argv[i], gdb_stdout); + if (i + 1 < d->argc) + fputs_filtered (", ", gdb_stdout); + } + fputs_filtered (")", gdb_stdout); + } + + if (line != 0) + fprintf_filtered (gdb_stdout, " %s\n", d->replacement); + else + fprintf_filtered (gdb_stdout, "=%s\n", d->replacement); } /* A callback function for usage with macro_for_each and friends. |